Changeset 2985


Ignore:
Timestamp:
May 23, 2012, 11:44:15 PM (3 years ago)
Author:
quozl
Message:

OLPC - remove USB serial adapter keyboard support from all models, #11871 #11887

Files:
4 edited

Legend:

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

    r2983 r2985  
    9797
    98980 value usb-keyboard-ih
    99 0 value usb-serial-ih
    10099
    101100: attach-usb-keyboard  ( -- )
     
    119118;
    120119
    121 : attach-usb-serial  ( -- )
    122    " /usb/serial" open-dev  ?dup  if
    123       to usb-serial-ih
    124       usb-serial-ih add-input
    125    then
    126 ;
    127 
    128 : detach-usb-serial  ( -- )
    129    usb-serial-ih  if
    130       usb-serial-ih remove-input
    131       usb-serial-ih close-dev
    132       0 to usb-serial-ih
    133    then
    134 ;
    135 
    136120: ?usb-keyboard  ( -- )
    137121   attach-usb-keyboard
    138    attach-usb-serial
    139122;
    140123
    141124: usb-quiet  ( -- )
    142125   detach-usb-keyboard
    143    detach-usb-serial
    144126   " /usb" " reset-usb" execute-device-method drop
    145127;
    146128
    147129: suspend-usb  ( -- )
    148    detach-usb-serial
    149130   detach-usb-keyboard
    150131   " /usb" " sleep" execute-device-method drop
     
    162143   silent-probe-usb
    163144   attach-usb-keyboard
    164    attach-usb-serial
    165145;
    166146
  • cpu/arm/olpc/3.0/usb.fth

    r2790 r2985  
    160160: ?usb-keyboard  ( -- )
    161161   attach-usb-keyboard
    162    " /usb/serial" open-dev  ?dup  if
    163       add-input
    164    then
    165162;
    166163
  • cpu/x86/pc/olpc/via/usb.fth

    r2657 r2985  
    8686: ?usb-keyboard  ( -- )
    8787   attach-usb-keyboard
    88    " /usb/serial" open-dev  ?dup  if
    89       add-input
    90    then
    9188;
    9289: suspend-usb  ( -- )
  • dev/geode/usb.fth

    r1758 r2985  
    7575: ?usb-keyboard  ( -- )
    7676   attach-usb-keyboard
    77    " /usb/serial" open-dev  ?dup  if
    78       add-input
    79    then
    8077;
    8178
Note: See TracChangeset for help on using the changeset viewer.