mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-09-12 07:53:39 +03: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:
parent
9a74b7c37f
commit
4da59642ae
@ -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
Block a user