[openfirmware] [commit] r3375 - cpu/arm/mmp2

repository service svn at openfirmware.info
Sat Oct 20 03:42:59 CEST 2012


Author: rsmith
Date: Sat Oct 20 03:42:59 2012
New Revision: 3375
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3375

Log:
OLPC ARM: convert s3-selftest to use sus power measurement

ec-sus-pwr reads a power measurement from the EC that only happens
after the EC senses the SoC is in suspend.  This reading gives much
more consistent results as long as the SoC is suspended for long
enough for the EC to update. (1s or more)

Modified:
   cpu/arm/mmp2/rtc.fth

Modified: cpu/arm/mmp2/rtc.fth
==============================================================================
--- cpu/arm/mmp2/rtc.fth	Sat Oct 20 02:20:13 2012	(r3374)
+++ cpu/arm/mmp2/rtc.fth	Sat Oct 20 03:42:59 2012	(r3375)
@@ -67,7 +67,7 @@
    \ on the operator.
    ." Testing suspend/resume"  cr
    ." Sleeping for 3 seconds .. "  d# 1000 ms
-   ec-rst-pwr ['] cancel-alarm 3 rtc-wake  str  ec-max-pwr  ( power )
+   ec-rst-pwr ['] cancel-alarm 3 rtc-wake  str  ec-sus-pwr  ( power )
    \ Negative power is consumed from battery, positive is supplied to battery
    dup  suspend-power-limit <  if                           ( power )
       ." System used too much power during suspend - "  negate .d ." mW" cr  ( )



More information about the openfirmware mailing list