[openfirmware] [commit] r3472 - dev/olpc/kb3700
repository service
svn at openfirmware.info
Thu Dec 6 05:50:30 CET 2012
Author: quozl
Date: Thu Dec 6 05:50:29 2012
New Revision: 3472
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3472
Log:
OLPC XO-4 - add EC 16-bit battery status command so that cooling bit can be displayed
Modified:
dev/olpc/kb3700/eccmdcom.fth
Modified: dev/olpc/kb3700/eccmdcom.fth
==============================================================================
--- dev/olpc/kb3700/eccmdcom.fth Wed Dec 5 09:02:09 2012 (r3471)
+++ dev/olpc/kb3700/eccmdcom.fth Thu Dec 6 05:50:29 2012 (r3472)
@@ -7,7 +7,7 @@
: bat-acr@ ( -- w ) h# 12 ec-cmd-w@ ;
: bat-temp@ ( -- w ) h# 13 ec-cmd-w@ ;
: ambient-temp@ ( -- w ) h# 14 ec-cmd-w@ ;
-: bat-status@ ( -- b ) h# 15 ec-cmd-b@ ;
+: bat-status8@ ( -- b ) h# 15 ec-cmd-b@ ;
: bat-soc@ ( -- b ) h# 16 ec-cmd-b@ ;
: ec-abnormal@ ( -- b ) h# 1f ec-cmd-b@ ;
@@ -23,6 +23,15 @@
: mppt-off ( -- ) h# 40 ec-cmd ;
: mppt-on ( -- ) h# 41 ec-cmd ;
: vin@ ( -- b ) h# 42 ec-cmd-w@ ;
+: bat-status16@ ( -- w ) h# 70 ec-cmd-w@ ;
+
+defer bat-status@
+' bat-status8@ is bat-status@
+
+[ifdef] olpc-xo4
+' bat-status16@ is bat-status@
+[then]
+
\ LICENSE_BEGIN
\ Copyright (c) 2010 FirmWorks
More information about the openfirmware
mailing list