1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 02:48:37 +02:00

[brcm63xx] fix spi chip select configuration

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21164 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2010-04-26 13:33:48 +00:00
parent 9a74b7c37f
commit 4da59642ae
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);
+}