Author: wmb
Date: Sat Oct 13 01:08:50 2012
New Revision: 3365
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3365
Log:
Libertas WLAN driver - changed "0 [if]" to "[ifdef] notdef" because the former doesn't
work the way you think when tokenizing FCode. The problem is that the tokenizer
emits an FCode for the "0", so the compile-time "[if]" doesn't see a number on the stack.
Modified:
dev/libertas.fth
Modified: dev/libertas.fth
==============================================================================
--- dev/libertas.fth Fri Oct 12 08:28:22 2012 (r3364)
+++ dev/libertas.fth Sat Oct 13 01:08:50 2012 (r3365)
@@ -793,7 +793,7 @@
respbuf >fw-data 4 + le-l@
;
-0 [if]
+[ifdef] notdef
: reg-access! ( n reg cmd -- )
8 swap prepare-cmd
ACTION_SET +xw
@@ -812,7 +812,7 @@
: mac-reg@ ( reg -- n )
19 ( CMD_MAC_REG_ACCESS ) reg-access@
;
-0 [if]
+[ifdef] notdef
: bbp-reg! ( n reg -- )
1a ( CMD_BBP_REG_ACCESS ) reg-access!
;
Author: quozl
Date: Thu Oct 11 09:50:31 2012
New Revision: 3361
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3361
Log:
OLPC WLAN driver - report 802.11n firmware capability when present, tested on XO-4 B1 with 8686 and 8787
Modified:
dev/libertas.fth
Modified: dev/libertas.fth
==============================================================================
--- dev/libertas.fth Thu Oct 11 08:03:46 2012 (r3360)
+++ dev/libertas.fth Thu Oct 11 09:50:31 2012 (r3361)
@@ -646,7 +646,8 @@
." 802.11"
dup h# 400 and if ." a" then
dup h# 100 and if ." b" then
- dup h# 200 and if ." g" then ." ;"
+ dup h# 200 and if ." g" then
+ dup h# 800 and if ." n" then ." ;"
dup h# 1 and if ." WPA;" then
dup h# 2 and if ." PS;" then
dup h# 8 and if ." EEPROM does not exit;" then
Author: rsmith
Date: Thu Oct 11 00:12:48 2012
New Revision: 3358
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3358
Log:
OLPC ARM: Update strp so it gets a valid suspend power reading
Use the ec-sus-pwr command rather than ec-max-pwr for getting the
power when the host is in suspend. ec-sus-pwr only takes a reading if
the EC thinks the host is in suspend.
Even with that a more delay was required for the time spent in
suspend than what wake1 was providing. The EC only samples the gauge
every 100ms and the gauge itself only updates every 88ms. Wake1 was
setting up a 1 second rtc wakeup but by the time the host actually
makes it into suspend the EC didn't have enough time left to get a
good consistent reading.
This patch makes a wake2 with a 2 second target and updates the
suspend test to use it.
Modified:
cpu/arm/mmp2/rtc.fth
cpu/arm/olpc/4.0/ec-version.fth
cpu/arm/olpc/suspend.fth
Modified: cpu/arm/mmp2/rtc.fth
==============================================================================
--- cpu/arm/mmp2/rtc.fth Wed Oct 10 21:24:16 2012 (r3357)
+++ cpu/arm/mmp2/rtc.fth Thu Oct 11 00:12:48 2012 (r3358)
@@ -40,13 +40,14 @@
5 enable-interrupt ( )
;
: wake1 ( -- ) ['] cancel-alarm 1 rtc-wake ;
+: wake2 ( -- ) ['] cancel-alarm 2 rtc-wake ;
: alarm-in-3 ( -- ) ['] take-alarm 3 rtc-wake ;
: wakeup-loop ( -- )
d# 1000000 0 do
0 d# 13 at-xy i .d
5 0 do
cr i .
- wake1 strp
+ wake2 strp
d# 500 ms
key? if unloop unloop exit then
loop
Modified: cpu/arm/olpc/4.0/ec-version.fth
==============================================================================
--- cpu/arm/olpc/4.0/ec-version.fth Wed Oct 10 21:24:16 2012 (r3357)
+++ cpu/arm/olpc/4.0/ec-version.fth Thu Oct 11 00:12:48 2012 (r3358)
@@ -1,6 +1,6 @@
\ The EC microcode
macro: EC_PLATFORM cl4
-macro: EC_VERSION 7_0_2_02
+macro: EC_VERSION 7_0_2_03
\ Alternate command for getting EC microcode, for testing new versions.
\ Temporarily uncomment the line and modify the path as necessary
Modified: cpu/arm/olpc/suspend.fth
==============================================================================
--- cpu/arm/olpc/suspend.fth Wed Oct 10 21:24:16 2012 (r3357)
+++ cpu/arm/olpc/suspend.fth Thu Oct 11 00:12:48 2012 (r3358)
@@ -215,4 +215,4 @@
platform-on
;
-: strp ( -- ) ec-rst-pwr str ec-max-pwr .d ." mW " soc .% space ;
+: strp ( -- ) ec-rst-pwr str ec-sus-pwr .d ." mW " soc .% space ;