Changeset 2638


Ignore:
Timestamp:
Oct 22, 2011, 6:25:07 AM (4 years ago)
Author:
wmb
Message:

OLPC XO-1.75 - suspend/resume selftest - moved from memory node to switches node to work around an SMT test problem wherein the suspend/resume test breaks the keyboard on some systems.

Location:
cpu/arm
Files:
3 edited

Legend:

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

    r2567 r2638  
    4747   \ on the operator.
    4848   ." Testing suspend/resume"  cr
    49    ." Sleeping for 3 seconds .. "  d# 100 ms
     49   ." Sleeping for 3 seconds .. "  d# 1000 ms
    5050   ec-rst-pwr ['] cancel-alarm 3 rtc-wake  str  ec-max-pwr  ( power )
    5151   \ Negative power is consumed from battery, positive is supplied to battery
     
    5454      true                                                  ( error? )
    5555   else                                                     ( power )
    56       drop  false                                           ( error? )
     56      ." OKAY"  cr drop  false                              ( error? )
    5757   then                                                     ( error? )
    5858;
    59 dev /memory
    60 [ifdef] test-s3  ' s3-selftest to test-s3  [then]
    61 dend
     59dev /switches
     60: selftest  ( -- error? )
     61   s3-selftest  if  true exit  then
     62   selftest 
     63;
     64device-end
    6265
    6366\ LICENSE_BEGIN
  • cpu/arm/olpc/1.75/fw.bth

    r2629 r2638  
    182182
    183183fload ${BP}/cpu/arm/mmp2/dramrecal.fth
     184
     185code halt  ( -- )  wfi   c;
     186
     187fload ${BP}/cpu/arm/olpc/1.75/switches.fth \ Lid and ebook switches
    184188fload ${BP}/cpu/arm/mmp2/rtc.fth       \ Internal RTC, used for wakeups
    185 
    186 code halt  ( -- )  wfi   c;
    187 
    188 fload ${BP}/cpu/arm/olpc/1.75/switches.fth \ Lid and ebook switches
    189189fload ${BP}/cpu/arm/olpc/1.75/leds.fth     \ LEDs
    190190fload ${BP}/cpu/x86/pc/olpc/via/factory.fth  \ Manufacturing tools
  • cpu/arm/olpc/1.75/probemem.fth

    r2602 r2638  
    6565: .chunk  ( adr len -- )  ." Testing address 0x" swap 8u.h ."  length 0x" 8u.h cr  ;
    6666
    67 defer test-s3  ( -- error? )  ' false is test-s3
    68 
    6967: test-mem  ( adr len -- )      \ Test a chunk 'o memory
    7068   2>r
     
    116114   repeat                              ( adr len )
    117115   2drop                               ( )
    118 
    119    test-s3                             ( error? )
     116   false
    120117;
    121118
Note: See TracChangeset for help on using the changeset viewer.