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 )
Author: wmb
Date: Sun Sep 2 01:42:57 2012
New Revision: 3269
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3269
Log:
OLPC ARM - Map the memory controller in early startup code so it doesn't have to be done later.
Modified:
cpu/arm/mmp2/initmmu.fth
Modified: cpu/arm/mmp2/initmmu.fth
==============================================================================
--- cpu/arm/mmp2/initmmu.fth Sat Sep 1 20:48:30 2012 (r3268)
+++ cpu/arm/mmp2/initmmu.fth Sun Sep 2 01:42:57 2012 (r3269)
@@ -358,6 +358,11 @@
set r3,#0xc02 \ No caching or write buffering
bl `map-sections-v=p`
+ set r1,`memctrl-pa #` \ Address of memory controller
+ set r2,`/io #` \ Size of I/O region
+ set r3,#0xc02 \ No caching or write buffering
+ bl `map-sections-v=p`
+
[ifdef] /audio-sram-map
set r1,`audio-sram-pa #` \ Address of Audio SRAM
set r2,`/audio-sram-map #` \ Map size of audio SRAM