[brcm63xx] fix spi chip select configuration

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21164 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Florian Fainelli 2010-04-26 13:33:48 +00:00
parent 698761efeb
commit 6edaad0b91
2 changed files with 2 additions and 2 deletions

View File

@ -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);
+}

View File

@ -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);
+}