[openfirmware] [commit] r2031 - cpu/x86/pc/olpc/via

repository service svn at openfirmware.info
Tue Nov 23 00:34:02 CET 2010


Author: quozl
Date: Tue Nov 23 00:34:01 2010
New Revision: 2031
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2031

Log:
OLPC XO-1.5 - strobe HDD_LED# during fs-update.  The LED is toggled once for each zblock: line in the input file.  This shows the processing speed, and is affected initially by complexity of decompression, and eventually by SD card write rate.  Faster and slower SD cards are more easily compared.  Cost of 1.7 microseconds per LED toggle, but as writes to SD are asynchronous the run time is unchanged.

Modified:
   cpu/x86/pc/olpc/via/fsupdate.fth

Modified: cpu/x86/pc/olpc/via/fsupdate.fth
==============================================================================
--- cpu/x86/pc/olpc/via/fsupdate.fth	Tue Nov 23 00:32:06 2010	(r2030)
+++ cpu/x86/pc/olpc/via/fsupdate.fth	Tue Nov 23 00:34:01 2010	(r2031)
@@ -64,7 +64,20 @@
 vocabulary nand-commands
 also nand-commands definitions
 
+: flash-led  ( -- )
+    h# 4c acpi-l@
+    h# 400000 xor
+    h# 4c acpi-l!
+;
+
+: clear-led  ( -- )
+    h# 4c acpi-l@
+    h# 400000 or
+    h# 4c acpi-l!
+;
+
 : zblocks:  ( "eblock-size" "#eblocks" ... -- )
+   flash-led
    ?compare-spec-line
    get-hex# to /nand-block
    get-hex# to #image-eblocks
@@ -87,6 +100,7 @@
    " write-blocks-end" $call-nand   ( error? )
    " Write error" ?nand-abort
 \   #image-eblocks erase-gap
+   clear-led
    release-inflater
    fexit
 ;
@@ -215,6 +229,7 @@
    dup to last-eblock#                   ( eblock# )
    show-written                          ( )
    show-temperature
+   flash-led
 ;
 
 previous definitions



More information about the openfirmware mailing list