Author: wmb Date: Wed Jul 6 08:31:27 2011 New Revision: 2333 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2333
Log: OLPC XO-1.75 - test OLS LED by blinking it.
Modified: cpu/arm/olpc/1.75/leds.fth
Modified: cpu/arm/olpc/1.75/leds.fth ============================================================================== --- cpu/arm/olpc/1.75/leds.fth Wed Jul 6 08:30:58 2011 (r2332) +++ cpu/arm/olpc/1.75/leds.fth Wed Jul 6 08:31:27 2011 (r2333) @@ -8,10 +8,13 @@ : close ( -- ) ; : hdd-led-on ( -- ) d# 10 gpio-set ; : hdd-led-off ( -- ) d# 10 gpio-clr ; +: ols-led-on ( -- ) d# 57 ec-cmd ; +: ols-led-off ( -- ) d# 58 ec-cmd ; : selftest ( -- ) ." Flashing LEDs" cr " /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 confirm-selftest? ;
openfirmware@openfirmware.info