fix spi chip select configuration
SVN-Revision: 21164
This commit is contained in:
parent
84dd37d930
commit
d15e136deb
2 changed files with 2 additions and 2 deletions
|
@ -505,7 +505,7 @@
|
||||||
+ if (is_on == BITBANG_CS_INACTIVE)
|
+ if (is_on == BITBANG_CS_INACTIVE)
|
||||||
+ val |= SPI_CMD_NOOP;
|
+ val |= SPI_CMD_NOOP;
|
||||||
+ else if (is_on == BITBANG_CS_ACTIVE)
|
+ 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);
|
+ bcm_spi_writew(val, bs->regs, SPI_CMD);
|
||||||
+}
|
+}
|
||||||
|
|
|
@ -505,7 +505,7 @@
|
||||||
+ if (is_on == BITBANG_CS_INACTIVE)
|
+ if (is_on == BITBANG_CS_INACTIVE)
|
||||||
+ val |= SPI_CMD_NOOP;
|
+ val |= SPI_CMD_NOOP;
|
||||||
+ else if (is_on == BITBANG_CS_ACTIVE)
|
+ 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);
|
+ bcm_spi_writew(val, bs->regs, SPI_CMD);
|
||||||
+}
|
+}
|
||||||
|
|
Loading…
Reference in a new issue