Changeset 2682


Ignore:
Timestamp:
Nov 14, 2011, 12:58:24 AM (4 years ago)
Author:
quozl
Message:

OLPC - keep storage LED lit during fs-update and flash, by turning off light sensor

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/olpc/1.75/devices.fth

    r2680 r2682  
    183183;
    184184: flash-vulnerable(  ( -- )
     185   ols-off
    185186   ignore-power-button
    186187   hdd-led-on
     
    188189: )flash-vulnerable  ( -- )
    189190   hdd-led-off
     191;
     192: fs-vulnerable(  ( -- )
     193   ols-off
     194   hdd-led-on
     195;
     196: )fs-vulnerable  ( -- )
     197   hdd-led-off
     198   ols-on
    190199;
    191200
  • cpu/arm/olpc/1.75/leds.fth

    r2572 r2682  
    77: open  ( -- okay? )  true  ;
    88: close  ( -- )  ;
    9 : ols-led-on  ( -- )  h# 57 ec-cmd  ;
    10 : ols-led-off ( -- )  h# 58 ec-cmd  ;
    11 : ols-assy-mode-on  ( -- )  h# 59 ec-cmd  ;
    12 : ols-assy-mode-off ( -- )  h# 5a ec-cmd  ;
    13 : ols-led-ec-control  ( -- )  h# 5b ec-cmd  ;
    149
    1510: selftest  ( -- )
  • cpu/x86/pc/olpc/devices.fth

    r2561 r2682  
    321321: flash-vulnerable(  ( -- )  ignore-power-button  ;
    322322: )flash-vulnerable  ( -- )  ;
     323: fs-vulnerable(  ( -- )  ;
     324: )fs-vulnerable  ( -- )  ;
    323325
    324326fload ${BP}/dev/olpc/spiflash/spiui.fth      \ User interface for SPI FLASH programming
  • cpu/x86/pc/olpc/via/devices.fth

    r2561 r2682  
    295295;
    296296: )flash-vulnerable  ( -- )
     297   hdd-led-off
     298;
     299: fs-vulnerable(  ( -- )
     300   hdd-led-on
     301;
     302: )fs-vulnerable  ( -- )
    297303   hdd-led-off
    298304;
  • cpu/x86/pc/olpc/via/fsupdate.fth

    r2507 r2682  
    6868
    6969: zblocks:  ( "eblock-size" "#eblocks" ... -- )
    70    hdd-led-toggle
     70   fs-vulnerable(
    7171   ?compare-spec-line
    7272   get-hex# to /nand-block
     
    9191   " write-blocks-end" $call-nand   ( error? )
    9292   " Write error" ?nand-abort
    93    hdd-led-off
     93   )fs-vulnerable
    9494   release-inflater
    9595   fexit
  • dev/olpc/kb3700/eccmds.fth

    r2534 r2682  
    8383;
    8484
    85 : als@      ( -- w )  h# 56 ec-cmd-w@  ;
     85: als@              ( -- w )  h# 56 ec-cmd-w@  ;
     86: ols-led-on          ( -- )  h# 57 ec-cmd  ;
     87: ols-led-off         ( -- )  h# 58 ec-cmd  ;
     88: ols-assy-mode-on    ( -- )  h# 59 ec-cmd  ;
     89: ols-assy-mode-off   ( -- )  h# 5a ec-cmd  ;
     90: ols-led-ec-control  ( -- )  h# 5b ec-cmd  ;
     91: ols-off
     92   ols-led-on
     93   ols-led-ec-control
     94   ols-assy-mode-on
     95;
     96: ols-on
     97   ols-led-ec-control
     98   ols-assy-mode-off
     99;
    86100
    87101: ec-min-pwr  ( -- )  h# 5d ec-cmd-w@ w->n  ;
Note: See TracChangeset for help on using the changeset viewer.