[openfirmware] [commit] r2676 - cpu/arm/olpc/1.75

repository service svn at openfirmware.info
Tue Nov 8 20:19:14 CET 2011


Author: wmb
Date: Tue Nov  8 20:19:14 2011
New Revision: 2676
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2676

Log:
OLPC XO-1.75 - disable muxed I/O when starting Linux, paving the way for OFW interaction when Linux is running.

Modified:
   cpu/arm/olpc/1.75/fw.bth

Modified: cpu/arm/olpc/1.75/fw.bth
==============================================================================
--- cpu/arm/olpc/1.75/fw.bth	Tue Nov  8 20:19:10 2011	(r2675)
+++ cpu/arm/olpc/1.75/fw.bth	Tue Nov  8 20:19:14 2011	(r2676)
@@ -37,15 +37,6 @@
    unload-crypto
    " /usb" " reset-usb" execute-device-method drop
 ;
-: quiesce  ( -- )
-   timers-off
-   usb-quiet
-   close-ec
-   \ Change the sleep state of EC_SPI_ACK from 1 (OFW value) to 0 (Linux value)
-   d# 125 af@  h# 100 invert and  d# 125 af!
-;
-
-' quiesce to linux-hook
 
 d# 9999 to arm-linux-machine-type  \ Marvell Jasper
 
@@ -416,6 +407,31 @@
       0 to keyboard-ih
    then
 ;
+
+: teardown-mux-io  ( -- )
+   install-uart-io
+   text-off
+   keyboard-off
+   fallback-out-ih remove-output
+   fallback-in-ih remove-input
+   stdin off
+   stdout off
+   in-mux-ih close-dev
+   out-mux-ih close-dev
+;
+: quiesce  ( -- )
+   teardown-mux-io
+   timers-off
+   usb-quiet
+   close-ec
+   \ Change the sleep state of EC_SPI_ACK from 1 (OFW value) to 0 (Linux value)
+   d# 125 af@  h# 100 invert and  d# 125 af!
+;
+
+' quiesce to linux-hook
+\ Because visible doesn't work sometimes when calling back from Linux
+dev /client-services  patch noop visible enter  dend
+
 : interpreter-init  ( -- )
    hex
    warning on



More information about the openfirmware mailing list