Changeset 3659


Ignore:
Timestamp:
May 17, 2013, 2:29:37 AM (2 years ago)
Author:
quozl
Message:

OLPC XO-1 - backport lid and ebook switch test, #12514.

Location:
cpu/x86/pc/olpc
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • cpu/x86/pc/olpc/fw.bth

    r3650 r3659  
    345345fload ${BP}/cpu/x86/pc/olpc/gui.fth
    346346fload ${BP}/cpu/x86/pc/olpc/suspend.fth      \ Suspend/resume setup
     347fload ${BP}/cpu/x86/pc/olpc/switches.fth
    347348fload ${BP}/cpu/x86/pc/olpc/disptest.fth
    348349dev /keyboard
     
    486487
    487488" dhcp" ' ip-address  set-config-string-default
    488 
    489 : lid?  ( -- flag )  h# 30 >hi gpio@  h# 24 >hi gpio@  xor  h# 400 and 0=  ;
    490 fload ${BP}/dev/olpc/lid.fth
    491489
    492490: c1-idle  ( -- )  interrupts-enabled?  if  halt  then  do-lid  ;
  • cpu/x86/pc/olpc/olpc.bth

    r3064 r3659  
    103103   " testicons/clock.565"       " clock.565"    $add-deflated-dropin
    104104   " testicons/timer.565"       " timer.565"    $add-deflated-dropin
     105   " ${BP}/cpu/x86/pc/olpc/images/ebook.di"     $add-file
    105106
    106107   /rom h# 400 - pad-file       \ rmstart image must start 0x400 from end
  • cpu/x86/pc/olpc/testitems.fth

    r2866 r3659  
    1818icon: timer.icon    rom:timer.565
    1919icon: clock.icon    rom:clock.565
     20icon: ebook.icon    rom:ebook.565
    2021
    2122: cpu-item      ( -- )  " /cpu"       mfg-test-dev  ;
     
    3334: touchpad-item ( -- )  " /8042/mouse"     mfg-test-dev  ;
    3435: keyboard-item ( -- )  " /8042/keyboard"  mfg-test-dev  ;
     36: switch-item   ( -- )  " /switches"  mfg-test-dev  ;
    3537
    3638: olpc-test-menu-items  ( -- )
     
    7981   " Touchpad"
    8082   ['] touchpad-item touchpad.icon  add-icon
     83   
     84   " Switches"
     85   ['] switch-item   ebook.icon     add-icon
    8186
    8287;
Note: See TracChangeset for help on using the changeset viewer.