Author: wmb
Date: Tue Sep 4 19:38:42 2012
New Revision: 3281
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3281
Log:
OLPC ARM - Moved the security Processor communication protocol driver after the USB driver in the load sequence so the ambiguous pathname /keyboard will resolve to /ap-sp/keyboard instead of /usb/keyboard after a USB keyboard has been attached. Manufacturing test scripts need that behavior per OLPC trac #12074.
Modified:
cpu/arm/olpc/build-fw.fth
Modified: cpu/arm/olpc/build-fw.fth
==============================================================================
--- cpu/arm/olpc/build-fw.fth Tue Sep 4 19:14:17 2012 (r3280)
+++ cpu/arm/olpc/build-fw.fth Tue Sep 4 19:38:42 2012 (r3281)
@@ -241,12 +241,6 @@
fload ${BP}/dev/olpc/kb3700/spicmd.fth \ EC SPI Command Protocol
-[ifdef] has-sp-kbd
-fload ${BP}/cpu/arm/olpc/spcmd.fth \ Security Processor communication protocol
-devalias keyboard /ap-sp/keyboard
-devalias mouse /ap-sp/mouse
-[then]
-
: wlan-reset ( -- ) wlan-reset-gpio# gpio-clr d# 20 ms wlan-reset-gpio# gpio-set ;
fload ${BP}/ofw/core/fdt.fth
@@ -302,6 +296,15 @@
[then]
fload ${BP}/cpu/arm/olpc/usb.fth
+[ifdef] has-sp-kbd
+\ Load this after the USB driver so the ambiguous pathname /keyboard will
+\ resolve to /ap-sp/keyboard instead of /usb/keyboard after a USB keyboard
+\ has been attached. Manufacturing test scripts need that behavior.
+fload ${BP}/cpu/arm/olpc/spcmd.fth \ Security Processor communication protocol
+devalias keyboard /ap-sp/keyboard
+devalias mouse /ap-sp/mouse
+[then]
+
fload ${BP}/dev/olpc/mmp2camera/loadpkg.fth
fload ${BP}/cpu/arm/firfilter.fth
Author: wmb
Date: Sun Sep 2 02:00:26 2012
New Revision: 3272
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3272
Log:
OLPC ARM - Changed the error threshold for suspend-state power to accomodate the observed power draw of the XO-4 A2 boards. When we have newer boards and better characterization, this threshold may need further tweaking.
Modified:
cpu/arm/mmp2/rtc.fth
Modified: cpu/arm/mmp2/rtc.fth
==============================================================================
--- cpu/arm/mmp2/rtc.fth Sun Sep 2 01:58:37 2012 (r3271)
+++ cpu/arm/mmp2/rtc.fth Sun Sep 2 02:00:26 2012 (r3272)
@@ -54,6 +54,12 @@
;
alias test4 wakeup-loop
+d# -250 constant suspend-power-limit
+[ifdef] mmp3
+ .( mmp2/rtc.fth: Temporarily increasing suspend-power-limit) cr
+ d# -400 to suspend-power-limit
+[then]
+
: s3-selftest ( -- error? )
\ The general failure mode here is that it won't wake up, so
\ it's hard to return a real error code. We just have to rely
@@ -62,7 +68,7 @@
." Sleeping for 3 seconds .. " d# 1000 ms
ec-rst-pwr ['] cancel-alarm 3 rtc-wake str ec-max-pwr ( power )
\ Negative power is consumed from battery, positive is supplied to battery
- dup d# -250 < if ( power )
+ dup suspend-power-limit < if ( power )
." System used too much power during suspend - " negate .d ." mW" cr ( )
true ( error? )
else ( power )