Author: wmb Date: 2008-02-01 03:29:02 +0100 (Fri, 01 Feb 2008) New Revision: 804
Modified: dev/olpc/kb3700/ecio.fth Log: OLPC EC interface - added "wlan-freeze" command that calls the new EC command number 0x35, and deleted support for command 0x23 which has never worked right, and in fact crashes the machine badly if you try it.
Modified: dev/olpc/kb3700/ecio.fth =================================================================== --- dev/olpc/kb3700/ecio.fth 2008-02-01 02:26:44 UTC (rev 803) +++ dev/olpc/kb3700/ecio.fth 2008-02-01 02:29:02 UTC (rev 804) @@ -143,8 +143,9 @@ : bat-init-nimh-gp ( -- ) h# 20 ec-cmd ; : bat-init-lifepo4-byd ( -- ) h# 21 ec-cmd ; : bat-init-lifepo4-gp ( -- ) h# 22 ec-cmd ; -: wlan-off ( -- ) 0 h# 23 ec-cmd-b! ; -: wlan-on ( -- ) 1 h# 23 ec-cmd-b! ; +\ EC cmd 23 never worked right and has been deprecated +\ : wlan-off ( -- ) 0 h# 23 ec-cmd-b! ; +\ : wlan-on ( -- ) 1 h# 23 ec-cmd-b! ; : wlan-wake ( -- ) h# 24 ec-cmd ; : wlan-reset ( -- ) h# 25 ec-cmd ; : dcon-power-off ( -- ) 0 h# 26 ec-cmd-b! ; @@ -153,6 +154,7 @@ : reset-ec ( -- ) h# 28 ec-cmd ; : write-protect-fw ( -- ) 3 ec-cmd ; : ebook-mode? ( -- b ) h# 2a ec-cmd-b@ ; +: wlan-freeze ( -- ) h# 35 ec-cmd ;
: ec-indexed-io-off ( -- ) h# fe95 ec@ h# 40 invert and h# fe95 ec! ;