[openfirmware] [commit] r2326 - cpu/arm/olpc/1.75

repository service svn at openfirmware.info
Fri Jul 1 20:52:56 CEST 2011


Author: wmb
Date: Fri Jul  1 20:52:55 2011
New Revision: 2326
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2326

Log:
OLPC XO-1.75 - Tell the EC to auto-reboot after reflashing the EC code.

Modified:
   cpu/arm/olpc/1.75/ecflash.fth

Modified: cpu/arm/olpc/1.75/ecflash.fth
==============================================================================
--- cpu/arm/olpc/1.75/ecflash.fth	Fri Jul  1 20:48:15 2011	(r2325)
+++ cpu/arm/olpc/1.75/ecflash.fth	Fri Jul  1 20:52:55 2011	(r2326)
@@ -34,6 +34,8 @@
    ifd @ fclose                      ( len )
    load-base swap ?ec-image-valid
 ;
+\ Tells the EC to auto-restart after power cycling
+: set-ec-reboot  ( -- )  1 h# f018 edi-b!  ;
 : reflash-ec
 [ifdef] cl2-a1
    " enter-updater" $call-ec
@@ -54,6 +56,7 @@
 [ifndef] cl2-a1
    ." Restarting EC and rebooting" cr
    d# 2000 ms
+   set-ec-reboot
    unreset-8051
 [then]
    ec-power-cycle
@@ -100,6 +103,7 @@
             .error
 	    ." Skipping EC reflash" cr
          else
+	    ." Updating EC code" cr
 	    reflash-ec
 	 then
       then



More information about the openfirmware mailing list