projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[brcm63xx] the SPI_CMD register is 16-bits wide
[openwrt.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
d4b95b0
..
ba7a947
100644
(file)
--- a/
target/linux/brcm63xx/patches-2.6.32/240-spi.patch
+++ b/
target/linux/brcm63xx/patches-2.6.32/240-spi.patch
@@
-649,10
+649,10
@@
Index: linux-2.6.32.10/drivers/spi/bcm63xx_spi.c
+ bcm_spi_writeb(msg_ctl, bs->regs, SPI_MSG_CTL);
+
+ /* Issue the transfer */
+ bcm_spi_writeb(msg_ctl, bs->regs, SPI_MSG_CTL);
+
+ /* Issue the transfer */
-+ cmd = bcm_spi_read
b
(bs->regs, SPI_CMD);
++ cmd = bcm_spi_read
w
(bs->regs, SPI_CMD);
+ cmd |= SPI_CMD_START_IMMEDIATE;
+ cmd |= (0 << SPI_CMD_PREPEND_BYTE_CNT_SHIFT);
+ cmd |= SPI_CMD_START_IMMEDIATE;
+ cmd |= (0 << SPI_CMD_PREPEND_BYTE_CNT_SHIFT);
-+ bcm_spi_write
b
(cmd, bs->regs, SPI_CMD);
++ bcm_spi_write
w
(cmd, bs->regs, SPI_CMD);
+
+ wait_for_completion(&bs->done);
+
+
+ wait_for_completion(&bs->done);
+
@@
-697,10
+697,10
@@
Index: linux-2.6.32.10/drivers/spi/bcm63xx_spi.c
+ bcm63xx_spi_fill_tx_fifo(bs);
+
+ /* Start the transfer */
+ bcm63xx_spi_fill_tx_fifo(bs);
+
+ /* Start the transfer */
-+ cmd = bcm_spi_read
b
(bs->regs, SPI_CMD);
++ cmd = bcm_spi_read
w
(bs->regs, SPI_CMD);
+ cmd |= SPI_CMD_START_IMMEDIATE;
+ cmd |= (0 << SPI_CMD_PREPEND_BYTE_CNT_SHIFT);
+ cmd |= SPI_CMD_START_IMMEDIATE;
+ cmd |= (0 << SPI_CMD_PREPEND_BYTE_CNT_SHIFT);
-+ bcm_spi_write
b
(cmd, bs->regs, SPI_CMD);
++ bcm_spi_write
w
(cmd, bs->regs, SPI_CMD);
+ } else
+ complete(&bs->done);
+ }
+ } else
+ complete(&bs->done);
+ }
This page took
0.023686 seconds
and
4
git commands to generate.