Author: quozl
Date: Tue Oct 30 11:37:09 2012
New Revision: 3399
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3399
Log:
spiflash - two parts with different voltage have the same JEDEC ID, the Winbond W25Q16CVSSIG and W25Q16BVSIG, so render them as W25Q16, which also matches the name the vendor has used.
Modified:
dev/olpc/spiflash/spiflash.fth
Modified: dev/olpc/spiflash/spiflash.fth
==============================================================================
--- dev/olpc/spiflash/spiflash.fth Tue Oct 30 09:41:57 2012 (r3398)
+++ dev/olpc/spiflash/spiflash.fth Tue Oct 30 11:37:09 2012 (r3399)
@@ -316,7 +316,7 @@
['] common-write 1mb-flash
jedec-id# h# 1520c2 = if 2mb-flash " MX25L1605D" to spi-id$ then
jedec-id# h# 1540c8 = if 2mb-flash " GD25Q16B" to spi-id$ then
- jedec-id# h# 1540ef = if 2mb-flash " W25Q16CVSSIG" to spi-id$ then
+ jedec-id# h# 1540ef = if 2mb-flash " W25Q16" to spi-id$ then
endof
h# 25 of
['] common-write 1mb-flash
Author: wmb
Date: Tue Oct 30 05:44:48 2012
New Revision: 3395
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3395
Log:
OLPC XO-4 - Turn audio island on before invoking Linux, thus eliminating the need to leave the island on when closing the OFW audio driver, thus making repeated audio testing work reliably.
Modified:
cpu/arm/olpc/build-fw.fth
Modified: cpu/arm/olpc/build-fw.fth
==============================================================================
--- cpu/arm/olpc/build-fw.fth Tue Oct 30 05:28:17 2012 (r3394)
+++ cpu/arm/olpc/build-fw.fth Tue Oct 30 05:44:48 2012 (r3395)
@@ -679,6 +679,10 @@
: pre-setup-for-linux ( -- )
[ ' linux-pre-hook behavior compile, ] \ Chain to old behavior
sound-end
+[ifdef] mmp3
+ \ XXX Delete this when Linux is ready to turn on the audio island
+ " audio-island-on" " /pmua" execute-device-method drop
+[then]
;
' pre-setup-for-linux to linux-pre-hook
Author: wmb
Date: Tue Oct 30 05:28:17 2012
New Revision: 3394
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3394
Log:
OLPC ARM - Turn off audio clock when closing sound driver, so that test repetitions will work correctly. This may require turning the clock back on prior to starting Linux.
Modified:
cpu/arm/olpc/sound.fth
Modified: cpu/arm/olpc/sound.fth
==============================================================================
--- cpu/arm/olpc/sound.fth Mon Oct 29 21:37:21 2012 (r3393)
+++ cpu/arm/olpc/sound.fth Tue Oct 30 05:28:17 2012 (r3394)
@@ -670,8 +670,7 @@
d# 48000 set-sample-rate
;
: (close)
-\ Reinstate audio-clock-off when Linux turns on its own clock
-\ audio-clock-off
+ audio-clock-off
adma-base h# 100 " map-out" $call-parent
sspa-base h# 100 " map-out" $call-parent
0 to adma-base 0 to sspa-base
Author: quozl
Date: Mon Oct 29 21:37:21 2012
New Revision: 3393
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3393
Log:
OLPC ARM - assign "0 0 reg" properties to several devices
when linux names devices, devices without a reg property will
get a globally assigned incrementing suffix, which may change
depending on which devices are configured. if present, linux
will use the reg property to create a stable name for a device.
using "0 0 reg" will result in a linux name like "0.ols"
from Paul Fox <pgf(a)laptop.org>
Modified:
cpu/arm/olpc/cl4/leds.fth
cpu/arm/olpc/gpio-i2c.fth
cpu/arm/olpc/sound.fth
Modified: cpu/arm/olpc/cl4/leds.fth
==============================================================================
--- cpu/arm/olpc/cl4/leds.fth Mon Oct 29 21:34:26 2012 (r3392)
+++ cpu/arm/olpc/cl4/leds.fth Mon Oct 29 21:37:21 2012 (r3393)
@@ -4,6 +4,7 @@
0 0 " " " /" begin-package
" ols" device-name
" olpc,xo-light-sensor" +compatible
+ 0 0 reg \ So linux will assign a static device name
end-package
0 0 " 0" " /" begin-package
Modified: cpu/arm/olpc/gpio-i2c.fth
==============================================================================
--- cpu/arm/olpc/gpio-i2c.fth Mon Oct 29 21:34:26 2012 (r3392)
+++ cpu/arm/olpc/gpio-i2c.fth Mon Oct 29 21:37:21 2012 (r3393)
@@ -34,6 +34,9 @@
" i2c-gpio" +compatible
1 " #address-cells" integer-property
1 " #size-cells" integer-property
+
+ 0 0 reg \ So linux will assign a static device name
+
: encode-unit ( phys.. -- str ) push-hex (u.) pop-base ;
: decode-unit ( str -- phys.. ) push-hex $number if 0 then pop-base ;
@@ -76,6 +79,9 @@
" i2c-gpio" +compatible
1 " #address-cells" integer-property
1 " #size-cells" integer-property
+
+ 0 0 reg \ So linux will assign a static device name
+
: encode-unit ( phys.. -- str ) push-hex (u.) pop-base ;
: decode-unit ( str -- phys.. ) push-hex $number if 0 then pop-base ;
Modified: cpu/arm/olpc/sound.fth
==============================================================================
--- cpu/arm/olpc/sound.fth Mon Oct 29 21:34:26 2012 (r3392)
+++ cpu/arm/olpc/sound.fth Mon Oct 29 21:37:21 2012 (r3393)
@@ -759,6 +759,8 @@
\ The name that was hardcoded in the Linux driver was OLPC XO-1.75
" OLPC XO" " model" string-property
+ 0 0 reg \ So linux will assign a static device name
+
: +string encode-string encode+ ;
0 0 encode-bytes