hdlcd.cc (11793:ef606668d247) hdlcd.cc (11897:bfddfbac3a1a)
1/*
1/*
2 * Copyright (c) 2010-2013, 2015 ARM Limited
2 * Copyright (c) 2010-2013, 2015, 2017 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

--- 188 unchanged lines hidden (view full) ---

199void
200HDLcd::drainResume()
201{
202 AmbaDmaDevice::drainResume();
203
204 // We restored from an old checkpoint without a pixel pump, start
205 // an new refresh. This typically happens when restoring from old
206 // checkpoints.
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

--- 188 unchanged lines hidden (view full) ---

199void
200HDLcd::drainResume()
201{
202 AmbaDmaDevice::drainResume();
203
204 // We restored from an old checkpoint without a pixel pump, start
205 // an new refresh. This typically happens when restoring from old
206 // checkpoints.
207 if (enabled() && !pixelPump.active())
208 pixelPump.start(displayTimings());
207 if (enabled() && !pixelPump.active()) {
208 // Update timing parameter before rendering frames
209 pixelPump.updateTimings(displayTimings());
210 pixelPump.start();
211 }
209
210 // We restored from a checkpoint and need to update the VNC server
211 if (pixelPump.active() && vnc)
212 vnc->setDirty();
213}
214
215// read registers and frame buffer
216Tick

--- 254 unchanged lines hidden (view full) ---

471 fb_line_length, fb_line_pitch, dma_lines));
472}
473
474void
475HDLcd::cmdEnable()
476{
477 createDmaEngine();
478 conv = pixelConverter();
212
213 // We restored from a checkpoint and need to update the VNC server
214 if (pixelPump.active() && vnc)
215 vnc->setDirty();
216}
217
218// read registers and frame buffer
219Tick

--- 254 unchanged lines hidden (view full) ---

474 fb_line_length, fb_line_pitch, dma_lines));
475}
476
477void
478HDLcd::cmdEnable()
479{
480 createDmaEngine();
481 conv = pixelConverter();
479 pixelPump.start(displayTimings());
482
483 // Update timing parameter before rendering frames
484 pixelPump.updateTimings(displayTimings());
485 pixelPump.start();
480}
481
482void
483HDLcd::cmdDisable()
484{
485 pixelPump.stop();
486 dmaEngine->abortFrame();
487}

--- 179 unchanged lines hidden ---
486}
487
488void
489HDLcd::cmdDisable()
490{
491 pixelPump.stop();
492 dmaEngine->abortFrame();
493}

--- 179 unchanged lines hidden ---