Author: wmb Date: Thu Dec 2 03:06:03 2010 New Revision: 2057 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2057
Log: OLPC XO-1.75 - added ec-date$ and ec-user$ EC commands.
Modified: dev/olpc/kb3700/eccmds.fth
Modified: dev/olpc/kb3700/eccmds.fth ============================================================================== --- dev/olpc/kb3700/eccmds.fth Thu Dec 2 03:05:14 2010 (r2056) +++ dev/olpc/kb3700/eccmds.fth Thu Dec 2 03:06:03 2010 (r2057) @@ -65,6 +65,16 @@
: ec-echo ( ... n -- ... ) dup h# 52 do-ec-cmd ;
+: ec-date$ ( -- adr len ) + 0 d# 16 h# 53 do-ec-cmd-buf ( adr ) + d# 16 cscount-max +; +: ec-user$ ( -- adr len ) + 0 d# 16 h# 54 do-ec-cmd-buf ( adr ) + d# 16 cscount-max +; + + : mppt-active@ ( -- b ) h# 3d ec-cmd-b@ ;
: bat-cause@ ( -- b ) h# 1f ec-cmd-b@ ;