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

repository service svn at openfirmware.info
Wed May 18 05:37:42 CEST 2011


Author: quozl
Date: Wed May 18 05:37:42 2011
New Revision: 2201
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2201

Log:
OLPC XO-1.75 - reuire battery and external power on flash-ec, #10698,
untested.

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

Modified: cpu/arm/olpc/1.75/ecflash.fth
==============================================================================
--- cpu/arm/olpc/1.75/ecflash.fth	Wed May 18 03:48:02 2011	(r2200)
+++ cpu/arm/olpc/1.75/ecflash.fth	Wed May 18 05:37:42 2011	(r2201)
@@ -34,8 +34,7 @@
    ifd @ fclose                      ( len )
    load-base swap ?ec-image-valid
 ;
-: flash-ec  ( "filename" -- )
-   get-ec-file
+: reflash-ec
 [ifdef] cl2-a1
    " enter-updater" $call-ec
    ." Erasing ..." cr  " erase-flash" $call-ec cr
@@ -47,7 +46,7 @@
    ." Erasing ..."  erase-chip cr
    ." Writing ..."  load-base /ec-flash 0 edi-program-flash cr
    ." Verifying ..."
-   load-base /ec-flash + /ec-flash 0 edi-read-flash  
+   load-base /ec-flash + /ec-flash 0 edi-read-flash
 [then]
    load-base  load-base /ec-flash +  /ec-flash  comp
    abort"  Miscompare!"
@@ -59,6 +58,8 @@
 [then]
    reset-ec
 ;
+: flash-ec  ( "filename" -- )  get-ec-file ?enough-power reflash-ec  ;
+: flash-ec! ( "filename" -- )  get-ec-file reflash-ec  ;
 : read-ec-flash  ( -- )
 [ifdef] cl2-a1
    " enter-updater" $call-ec



More information about the openfirmware mailing list