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
openfirmware@openfirmware.info