Changeset 2692


Ignore:
Timestamp:
Nov 17, 2011, 12:11:05 AM (3 years ago)
Author:
wmb
Message:

OLPC XO-1.75 - svn 2676 introduced a problem with EC communication by loading some code at the wrong time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/olpc/1.75/fw.bth

    r2686 r2692  
    129129; 
    130130warning ! 
    131 [then] 
    132131 
    133132: (.firmware)  ( -- ) 
     
    169168 
    170169fload ${BP}/cpu/x86/pc/olpc/via/banner.fth 
     170 
     171devalias keyboard /ap-sp/keyboard 
     172devalias mouse    /ap-sp/mouse 
     173 
     174: console-start  ( -- ) 
     175   install-mux-io 
     176   cursor-off 
     177   true to text-on? 
     178 
     179   " //null" open-dev to null-ih  \ For text-off state 
     180; 
     181: keyboard-off  ( -- ) 
     182   keyboard-ih  if 
     183      keyboard-ih remove-input 
     184      keyboard-ih close-dev 
     185      0 to keyboard-ih 
     186   then 
     187; 
     188 
     189: teardown-mux-io  ( -- ) 
     190   install-uart-io 
     191   text-off 
     192   keyboard-off 
     193   fallback-out-ih remove-output 
     194   fallback-in-ih remove-input 
     195   stdin off 
     196   stdout off 
     197   in-mux-ih close-dev 
     198   out-mux-ih close-dev 
     199; 
     200: quiesce  ( -- ) 
     201   teardown-mux-io 
     202   timers-off 
     203   usb-quiet 
     204   close-ec 
     205   \ Change the sleep state of EC_SPI_ACK from 1 (OFW value) to 0 (Linux value) 
     206   d# 125 af@  h# 100 invert and  d# 125 af! 
     207; 
     208 
     209\ This must precede the loading of gui.fth, which chains from linux-hook's behavior 
     210' quiesce to linux-hook 
    171211 
    172212\ This must be defined after spiui.fth, otherwise spiui will choose some wrong code 
     
    395435fload ${BP}/dev/hdaudio/noiseburst.fth  \ audio-test support package 
    396436 
    397 devalias keyboard /ap-sp/keyboard 
    398 devalias mouse    /ap-sp/mouse 
    399  
    400 : console-start  ( -- ) 
    401    install-mux-io 
    402    cursor-off 
    403    true to text-on? 
    404  
    405    " //null" open-dev to null-ih  \ For text-off state 
    406 ; 
    407 : keyboard-off  ( -- ) 
    408    keyboard-ih  if 
    409       keyboard-ih remove-input 
    410       keyboard-ih close-dev 
    411       0 to keyboard-ih 
    412    then 
    413 ; 
    414  
    415 : teardown-mux-io  ( -- ) 
    416    install-uart-io 
    417    text-off 
    418    keyboard-off 
    419    fallback-out-ih remove-output 
    420    fallback-in-ih remove-input 
    421    stdin off 
    422    stdout off 
    423    in-mux-ih close-dev 
    424    out-mux-ih close-dev 
    425 ; 
    426 : quiesce  ( -- ) 
    427    teardown-mux-io 
    428    timers-off 
    429    usb-quiet 
    430    close-ec 
    431    \ Change the sleep state of EC_SPI_ACK from 1 (OFW value) to 0 (Linux value) 
    432    d# 125 af@  h# 100 invert and  d# 125 af! 
    433 ; 
    434  
    435 ' quiesce to linux-hook 
    436437\ Because visible doesn't work sometimes when calling back from Linux 
    437438dev /client-services  patch noop visible enter  dend 
Note: See TracChangeset for help on using the changeset viewer.