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
Author: pgf
Date: Fri Aug 10 00:25:40 2012
New Revision: 3147
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3147
Log:
bsl.fth: don't modify mfp settings on cl4
the pin settings established by cforth are correct on cl4-a2.
Modified:
cpu/arm/olpc/bsl.fth
Modified: cpu/arm/olpc/bsl.fth
==============================================================================
--- cpu/arm/olpc/bsl.fth Thu Aug 9 22:34:22 2012 (r3146)
+++ cpu/arm/olpc/bsl.fth Fri Aug 10 00:25:40 2012 (r3147)
@@ -51,9 +51,12 @@
\ The pin setup should be done in CForth, but it's complicated by
\ the fact that the touch-enabled CL2 uses GPIO 56 differently from
\ the ordinary one
-[ifdef] olpc-cl2 3 d# 55 af! 3 d# 56 af! [then] \ Setup pins for UART2
+[ifdef] olpc-cl2
+ 3 d# 55 af! \ Setup pins for UART2
+ 3 d# 56 af!
0 touch-tck-gpio# af! \ Set to GPIO function
1 touch-rst-gpio# af! \ Set to GPIO function (AF0 is SM_BELn for this pin)
+[then]
;
0 [if]
Author: wmb
Date: Thu Aug 9 14:27:13 2012
New Revision: 3143
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3143
Log:
OLPC - Load the crypto code in stand-init, because demand-loading it during WLAN startup can mess up resolution of later path components.
Modified:
cpu/x86/pc/olpc/crypto.fth
Modified: cpu/x86/pc/olpc/crypto.fth
==============================================================================
--- cpu/x86/pc/olpc/crypto.fth Thu Aug 9 10:28:22 2012 (r3142)
+++ cpu/x86/pc/olpc/crypto.fth Thu Aug 9 14:27:13 2012 (r3143)
@@ -19,6 +19,9 @@
true to crypto-loaded?
false
;
+stand-init: Crypto
+ load-crypto drop
+;
: unload-crypto ( -- )
crypto-loaded? 0= if exit then
verify-base /verify mem-release