[openfirmware] [commit] r1765 - cpu/x86/pc/olpc/via

repository service svn at openfirmware.info
Wed Mar 10 10:26:00 CET 2010


Author: wmb
Date: Wed Mar 10 10:26:00 2010
New Revision: 1765
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/1765

Log:
OLPC XO-1.5 - Added disable-serial command.

Modified:
   cpu/x86/pc/olpc/via/fw.bth

Modified: cpu/x86/pc/olpc/via/fw.bth
==============================================================================
--- cpu/x86/pc/olpc/via/fw.bth	Wed Mar 10 10:16:39 2010	(r1764)
+++ cpu/x86/pc/olpc/via/fw.bth	Wed Mar 10 10:26:00 2010	(r1765)
@@ -743,9 +743,14 @@
 
 : enable-serial ( -- )
    serial-enabled? if exit then
+
    h# 40 h# 8846 config-b!
-   " com1" open-dev add-input
-   " com1" open-dev add-output
+   " com1" open-dev dup to fallback-in-ih  add-input
+   " com1" open-dev dup to fallback-out-ih add-output
+;
+: disable-serial
+   fallback-in-ih   ?dup  if  remove-input  then
+   fallback-out-ih  ?dup  if  remove-output  then
 ;
 
 tag-file @ fclose  tag-file off



More information about the openfirmware mailing list