[openfirmware] [commit] r2332 - cpu/arm/olpc/1.75
repository service
svn at openfirmware.info
Wed Jul 6 08:30:59 CEST 2011
Author: wmb
Date: Wed Jul 6 08:30:58 2011
New Revision: 2332
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2332
Log:
OLPC XO-1.75 - shorter memory test and simplified accelerometer test in final test stage.
Modified:
cpu/arm/olpc/1.75/accelerometer.fth
cpu/arm/olpc/1.75/devices.fth
cpu/arm/olpc/1.75/fw.bth
Modified: cpu/arm/olpc/1.75/accelerometer.fth
==============================================================================
--- cpu/arm/olpc/1.75/accelerometer.fth Wed Jul 6 04:22:55 2011 (r2331)
+++ cpu/arm/olpc/1.75/accelerometer.fth Wed Jul 6 08:30:58 2011 (r2332)
@@ -73,6 +73,8 @@
: selftest ( -- error? )
open 0= if true exit then
+ final-test? if accelerometer-off false exit then
+
\ Use the device's selftest function to force a change in one direction
delay ( )
average-acceleration@ ( x y z )
Modified: cpu/arm/olpc/1.75/devices.fth
==============================================================================
--- cpu/arm/olpc/1.75/devices.fth Wed Jul 6 04:22:55 2011 (r2331)
+++ cpu/arm/olpc/1.75/devices.fth Wed Jul 6 08:30:58 2011 (r2332)
@@ -351,8 +351,6 @@
stand-init: RTC
" /rtc" open-dev clock-node !
;
-fload ${BP}/cpu/arm/olpc/1.75/accelerometer.fth
-fload ${BP}/cpu/arm/olpc/1.75/compass.fth
warning @ warning off
: stand-init
Modified: cpu/arm/olpc/1.75/fw.bth
==============================================================================
--- cpu/arm/olpc/1.75/fw.bth Wed Jul 6 04:22:55 2011 (r2331)
+++ cpu/arm/olpc/1.75/fw.bth Wed Jul 6 08:30:58 2011 (r2332)
@@ -151,6 +151,26 @@
fload ${BP}/cpu/arm/olpc/1.75/leds.fth \ LEDs
fload ${BP}/cpu/x86/pc/olpc/via/factory.fth \ Manufacturing tools
+fload ${BP}/cpu/arm/olpc/1.75/accelerometer.fth
+fload ${BP}/cpu/arm/olpc/1.75/compass.fth
+
+\ Suppress long memory test at final test stage
+dev /memory
+defer old-diagnostic-mode?
+: not-final-test? ( -- flag )
+ final-test? if false exit then
+ old-diagnostic-mode?
+;
+warning @ warning off
+: selftest ( -- error? )
+ ['] (diagnostic-mode?) behavior to old-diagnostic-mode?
+ ['] not-final-test? to (diagnostic-mode?)
+ selftest
+ ['] old-diagnostic-mode? behavior to (diagnostic-mode?)
+;
+warning !
+device-end
+
\ When reprogramming this machine's SPI FLASH, rebooting the EC is unnecessary
: no-kbc-reboot ['] noop to spi-reprogrammed ;
: kbc-on ;
More information about the openfirmware
mailing list