[brcm63xx] fix spi chip select configuration
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21164 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
698761efeb
commit
6edaad0b91
|
@ -505,7 +505,7 @@
|
|||
+ 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);
|
||||
+}
|
||||
|
|
|
@ -505,7 +505,7 @@
|
|||
+ 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);
|
||||
+}
|
||||
|
|
Loading…
Reference in New Issue