Author: rsmith Date: Fri Aug 10 02:15:54 2012 New Revision: 3148 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3148
Log: OLPC CL4 - Fixup automatic power up after EC reboot
The location of the magic value for telling the EC to power back up on a power off changed with the switch to the io3790. This fixes 'bye' as well.
Modified: cpu/arm/olpc/ecflash.fth
Modified: cpu/arm/olpc/ecflash.fth ============================================================================== --- cpu/arm/olpc/ecflash.fth Fri Aug 10 00:25:40 2012 (r3147) +++ cpu/arm/olpc/ecflash.fth Fri Aug 10 02:15:54 2012 (r3148) @@ -26,7 +26,11 @@ load-base swap ?ec-image-valid ; \ Tells the EC to auto-restart after power cycling -: set-ec-reboot ( -- ) 1 h# f018 edi-b! ; +: set-ec-reboot ( -- ) + 1 + kb9010? if h# ff01 else h# f018 then + edi-b! +; : ?reflash-ec-flags ( adr -- ) use-edi-spi ( adr ) edi-open-active ( adr ) \ avoids holding EC in reset
openfirmware@openfirmware.info