Author: wmb
Date: Tue Jul 6 10:23:04 2010
New Revision: 1862
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/1862
Log:
OLPC XO-1.5 - CPU selftest - check the CPU voltage requirements to catch the possibility of a CPU the requires a different voltage than the one we provide.
Modified:
cpu/x86/pc/olpc/via/devices.fth
Modified: cpu/x86/pc/olpc/via/devices.fth
==============================================================================
--- cpu/x86/pc/olpc/via/devices.fth Sat Jul 3 23:45:15 2010 (r1861)
+++ cpu/x86/pc/olpc/via/devices.fth Tue Jul 6 10:23:04 2010 (r1862)
@@ -144,6 +144,21 @@
fload ${BP}/cpu/x86/pc/cpunode.fth
fload ${BP}/cpu/x86/k6cputest.fth \ Burnin test for K6 CPU
+\ Amend the CPU selftest method to check for Via processors that
+\ require a different voltage than the one we provide.
+dev /cpu
+warning @ warning off
+: selftest ( -- error? )
+ h# 198 msr@ drop ( msr.low )
+ h# ff and 6 <> if ( )
+ ." Wrong CPU Voltage" cr
+ true exit
+ then
+ selftest
+;
+warning !
+device-end
+
0 [if]
fload ${BP}/ofw/console/bailout.fth
stand-init: Keyboard overrides
Author: wmb
Date: Sat Jul 3 23:45:15 2010
New Revision: 1861
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/1861
Log:
OLPC - NANDblaster - reset the WLAN module after using it in AP mode, so it can be used again in normal mode without rebooting the machine.
Modified:
dev/libertas.fth
Modified: dev/libertas.fth
==============================================================================
--- dev/libertas.fth Sat Jul 3 20:09:47 2010 (r1860)
+++ dev/libertas.fth Sat Jul 3 23:45:15 2010 (r1861)
@@ -1607,6 +1607,12 @@
make-beacon
d# 100 1 set-beacon
;
+\ This is a bit heavy-handed, but I don't know a more precise recipe
+: stop-ap ( -- )
+ ds-not-ready to driver-state \ Forces firmware reload on next open
+ reset-host-bus \ Primes module to accept new firmware
+ false to ap-mode?
+;
: get-log ( -- )
0 h# b ( CMD_802_11_GET_LOG ) prepare-cmd
@@ -1865,7 +1871,7 @@
: close ( -- )
opencount @ 1- 0 max opencount !
opencount @ 0= if
- ap-mode? if set-sta-mode then
+ ap-mode? if stop-ap then
adhoc-started? if adhoc-stop then
disable-multicast
mesh-stop drop