Author: wmb Date: Sat Sep 24 02:36:27 2011 New Revision: 2534 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2534
Log: OLPC XO-1.75 - Added EC commands ec-rst-pwr, ec-min-pwr, ec-max-pwr , used for power measurement during suspend.
Modified: cpu/arm/extra.fth dev/olpc/kb3700/eccmds.fth
Modified: cpu/arm/extra.fth ============================================================================== --- cpu/arm/extra.fth Fri Sep 23 23:53:29 2011 (r2533) +++ cpu/arm/extra.fth Sat Sep 24 02:36:27 2011 (r2534) @@ -91,6 +91,7 @@ code n->a ( n -- a ) c; code l->w ( l -- w ) mov tos,tos,lsl #16 mov tos,tos,lsr #16 c; code n->w ( n -- w ) mov tos,tos,lsl #16 mov tos,tos,lsr #16 c; +code w->n ( n -- w ) mov tos,tos,lsl #16 mov tos,tos,asr #16 c; \ Sign extend
code l>r ( l -- ) psh tos,rp pop tos,sp c; code lr> ( -- l ) psh tos,sp pop tos,rp c;
Modified: dev/olpc/kb3700/eccmds.fth ============================================================================== --- dev/olpc/kb3700/eccmds.fth Fri Sep 23 23:53:29 2011 (r2533) +++ dev/olpc/kb3700/eccmds.fth Sat Sep 24 02:36:27 2011 (r2534) @@ -84,6 +84,11 @@
: als@ ( -- w ) h# 56 ec-cmd-w@ ;
+: ec-min-pwr ( -- ) h# 5d ec-cmd-w@ w->n ; +: ec-max-pwr ( -- ) h# 5e ec-cmd-w@ w->n ; +: ec-rst-pwr ( -- ) h# 5f ec-cmd ; + + [ifdef] notdef \ These commands are awaiting documentation on their interfaces #define CMD_READ_EXT_SCI_MASK 0x37 #define CMD_WRITE_EXT_SCI_MASK 0x38