[openfirmware] [commit] r3513 - dev/olpc/dcon

repository service svn at openfirmware.info
Mon Jan 7 08:05:09 CET 2013


Author: quozl
Date: Mon Jan  7 08:05:08 2013
New Revision: 3513
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3513

Log:
OLPC ARM - DCON unfreeze glitch reduction on 1.2 GHz SKUs.  Increased the delay between waking screen and enabling DCONLOAD.  Set scan line register in device setup.  Solves #12394.  Does not change #12377.

Modified:
   dev/olpc/dcon/mmp2dcon.fth

Modified: dev/olpc/dcon/mmp2dcon.fth
==============================================================================
--- dev/olpc/dcon/mmp2dcon.fth	Sun Jan  6 04:39:45 2013	(r3512)
+++ dev/olpc/dcon/mmp2dcon.fth	Mon Jan  7 08:05:08 2013	(r3513)
@@ -87,12 +87,13 @@
 0 value color? \ COLOUR
 
 d# 850 value resumeline
+: scanint-set  resumeline scanint!  ;
 : mark-time  ( -- start-time )  get-msecs  ;
 : delta-ms  ( start-time -- elapsed-ms )  mark-time  swap -   ;
 
 : wait-output  ( -- )
    mark-time                                            ( start-time )
-   resumeline scanint!  setup-dcon-irq  scanint-on      ( )
+   setup-dcon-irq  scanint-on                           ( )
    begin                                                ( start-time )
       dcon-irq?  if                                     ( start-time )
          setup-dcon-irq                                 ( start-time )
@@ -137,7 +138,7 @@
    if
       wait-output               \ Wait for the DCON to reach the scan line
       " wake" $call-screen      \ Enable video signal from SoC
-      d# 5 ms
+      d# 25 ms
       dcon-load                 \ Put the DCON in VGA-refreshed mode
       d# 25 ms                  \ Ensure that that DCON sees the DCONLOAD high
    else
@@ -219,6 +220,7 @@
    h# 0101  h# 42 dcon!
 
    h# 12 mode!
+   scanint-set
    false
 ;
 : dcon-enable  ( -- )
@@ -247,6 +249,7 @@
 \ Unnecessary because CForth has already done it
 \   dcon-load  dcon-enable  ( maybe-set-cmos )
    \ dcon-enable leaves mode set to 69 - 40:antialias, 20:swizzle, 8:backlight on, 1:passthru off
+   scanint-set
    true
 ;
 [then]



More information about the openfirmware mailing list