Author: wmb Date: Fri Sep 30 00:51:18 2011 New Revision: 2548 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2548
Log: OLPC XO-1.75 - trac #11229 - Display date and time in RTC selftest. Also check date for reasonablness - later than the date when this test was added.
Modified: cpu/arm/olpc/1.75/rtc.fth
Modified: cpu/arm/olpc/1.75/rtc.fth ============================================================================== --- cpu/arm/olpc/1.75/rtc.fth Thu Sep 29 09:18:36 2011 (r2547) +++ cpu/arm/olpc/1.75/rtc.fth Fri Sep 30 00:51:18 2011 (r2548) @@ -75,8 +75,11 @@ ." RTC did not tick" cr true close exit then + get-time .date space .time cr + get-time >unix-seconds ( clock-seconds ) + 0 0 0 d# 29 d# 9 d# 2011 >unix-seconds ( clock-seconds earliest-seconds ) + u< dup if ." Date in RTC is too early" cr then close - false ;
end-package