Changeset 3375


Ignore:
Timestamp:
Oct 20, 2012, 3:42:59 AM (2 years ago)
Author:
rsmith
Message:

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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/mmp2/rtc.fth

    r3358 r3375  
    6868   ." Testing suspend/resume"  cr 
    6969   ." Sleeping for 3 seconds .. "  d# 1000 ms 
    70    ec-rst-pwr ['] cancel-alarm 3 rtc-wake  str  ec-max-pwr  ( power ) 
     70   ec-rst-pwr ['] cancel-alarm 3 rtc-wake  str  ec-sus-pwr  ( power ) 
    7171   \ Negative power is consumed from battery, positive is supplied to battery 
    7272   dup  suspend-power-limit <  if                           ( power ) 
Note: See TracChangeset for help on using the changeset viewer.