Changeset 2692
- Timestamp:
- Nov 17, 2011 12:11:05 AM (18 months ago)
- File:
-
- 1 edited
-
cpu/arm/olpc/1.75/fw.bth (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cpu/arm/olpc/1.75/fw.bth
r2686 r2692 129 129 ; 130 130 warning ! 131 [then]132 131 133 132 : (.firmware) ( -- ) … … 169 168 170 169 fload ${BP}/cpu/x86/pc/olpc/via/banner.fth 170 171 devalias keyboard /ap-sp/keyboard 172 devalias 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 171 211 172 212 \ This must be defined after spiui.fth, otherwise spiui will choose some wrong code … … 395 435 fload ${BP}/dev/hdaudio/noiseburst.fth \ audio-test support package 396 436 397 devalias keyboard /ap-sp/keyboard398 devalias mouse /ap-sp/mouse399 400 : console-start ( -- )401 install-mux-io402 cursor-off403 true to text-on?404 405 " //null" open-dev to null-ih \ For text-off state406 ;407 : keyboard-off ( -- )408 keyboard-ih if409 keyboard-ih remove-input410 keyboard-ih close-dev411 0 to keyboard-ih412 then413 ;414 415 : teardown-mux-io ( -- )416 install-uart-io417 text-off418 keyboard-off419 fallback-out-ih remove-output420 fallback-in-ih remove-input421 stdin off422 stdout off423 in-mux-ih close-dev424 out-mux-ih close-dev425 ;426 : quiesce ( -- )427 teardown-mux-io428 timers-off429 usb-quiet430 close-ec431 \ 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-hook436 437 \ Because visible doesn't work sometimes when calling back from Linux 437 438 dev /client-services patch noop visible enter dend
Note: See TracChangeset
for help on using the changeset viewer.
