projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[brcm63xx] fix spi chip select configuration
[openwrt/svn-archive/archive.git]
/
target
/
linux
/
brcm63xx
/
patches-2.6.32
/
240-spi.patch
diff --git
a/target/linux/brcm63xx/patches-2.6.32/240-spi.patch
b/target/linux/brcm63xx/patches-2.6.32/240-spi.patch
index 2c63623b8721ea49cb35caeb7ab6ed1049086f4d..319d21cd1431ada39f305b555a5efe0d8cbb7033 100644
(file)
--- a/
target/linux/brcm63xx/patches-2.6.32/240-spi.patch
+++ b/
target/linux/brcm63xx/patches-2.6.32/240-spi.patch
@@
-505,7
+505,7
@@
+ if (is_on == BITBANG_CS_INACTIVE)
+ val |= SPI_CMD_NOOP;
+ else if (is_on == BITBANG_CS_ACTIVE)
+ if (is_on == BITBANG_CS_INACTIVE)
+ val |= SPI_CMD_NOOP;
+ else if (is_on == BITBANG_CS_ACTIVE)
-+ val |= (
1 <<
spi->chip_select << SPI_CMD_DEVICE_ID_SHIFT);
++ val |= (spi->chip_select << SPI_CMD_DEVICE_ID_SHIFT);
+
+ bcm_spi_writew(val, bs->regs, SPI_CMD);
+}
+
+ bcm_spi_writew(val, bs->regs, SPI_CMD);
+}