Author: quozl
Date: Fri Sep 30 03:30:43 2011
New Revision: 2555
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2555
Log:
OLPC XO-1.75 - fix RTC test for units that do not hold their date, by checking only the year, #11229
Modified:
cpu/arm/olpc/1.75/rtc.fth
Modified: cpu/arm/olpc/1.75/rtc.fth
==============================================================================
--- cpu/arm/olpc/1.75/rtc.fth Fri Sep 30 02:32:34 2011 (r2554)
+++ cpu/arm/olpc/1.75/rtc.fth Fri Sep 30 03:30:43 2011 (r2555)
@@ -76,9 +76,8 @@
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
+ get-time 2nip 2nip nip
+ d# 2011 < dup if ." Date in RTC is too early" cr then
close
;
Author: quozl
Date: Fri Sep 30 02:32:34 2011
New Revision: 2554
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2554
Log:
OLPC XO-1.75 - change LED testing order for C stage since the OLS LED is moving over the storage LED, make the OLS LED flash at a slower rate for better discrimination against what it is near, and turn off the EC OLS gate for both B1 and C1.
Modified:
cpu/arm/olpc/1.75/leds.fth
Modified: cpu/arm/olpc/1.75/leds.fth
==============================================================================
--- cpu/arm/olpc/1.75/leds.fth Fri Sep 30 02:15:06 2011 (r2553)
+++ cpu/arm/olpc/1.75/leds.fth Fri Sep 30 02:32:34 2011 (r2554)
@@ -13,11 +13,17 @@
: ols-led-ec-control ( -- ) h# 5b ec-cmd ;
: selftest ( -- )
- ." Flashing LEDs" cr
+ ." Flashing LEDs" cr
+
+ d# 10 0 do ols-led-on d# 200 ms ols-led-off d# 200 ms loop
+ ols-led-ec-control
+ ols-assy-mode-on
+
" /wlan" test-dev " /wlan" test-dev \ Twice for longer flashing
+
d# 20 0 do hdd-led-on d# 100 ms hdd-led-off d# 100 ms loop
- d# 20 0 do ols-led-on d# 100 ms ols-led-off d# 100 ms loop
- ols-led-ec-control
+ ols-assy-mode-off
+
confirm-selftest?
;
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