[openfirmware] [commit] r3578 - cpu/arm/olpc

repository service svn at openfirmware.info
Fri Mar 1 20:54:34 CET 2013


Author: wmb
Date: Fri Mar  1 20:54:33 2013
New Revision: 3578
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3578

Log:
OLPC ARM - trac #12592 - MMC2/3 display driver - when sleeping, save the hardware cursor mode info in addition to the bitmap, thus preventing the cursor from disappearing after invoking the display selftest from the GUI.

Modified:
   cpu/arm/olpc/lcd.fth

Modified: cpu/arm/olpc/lcd.fth
==============================================================================
--- cpu/arm/olpc/lcd.fth	Fri Mar  1 10:00:57 2013	(r3577)
+++ cpu/arm/olpc/lcd.fth	Fri Mar  1 20:54:33 2013	(r3578)
@@ -265,13 +265,22 @@
 ;
 d# 256 constant /cursor
 /cursor buffer: cursor
+0 0 2value saved-cursor-wh
+0 0 2value saved-cursor-fgbg
+
 : sleep  ( -- )
    cursor /cursor 0  cursor-sram-read
+   cursor-wh@ to saved-cursor-wh
+   cursor-fgbg@ to saved-cursor-fgbg
    0 h# 190 lcd!
    lcd-clocks-off
 ;
 : wake  ( -- )
    init-lcd
+   enable-cursor-writes
+   cursor-2bpp-mode
+   saved-cursor-fgbg cursor-fgbg!
+   saved-cursor-wh cursor-wh!
    cursor /cursor 0  cursor-sram-write
 ;
 



More information about the openfirmware mailing list