[brcm63xx] fix spi chip select configuration
authorFlorian Fainelli <florian@openwrt.org>
Mon, 26 Apr 2010 13:33:48 +0000 (13:33 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Mon, 26 Apr 2010 13:33:48 +0000 (13:33 +0000)
SVN-Revision: 21164

target/linux/brcm63xx/patches-2.6.32/240-spi.patch
target/linux/brcm63xx/patches-2.6.33/240-spi.patch

index 2c63623b8721ea49cb35caeb7ab6ed1049086f4d..319d21cd1431ada39f305b555a5efe0d8cbb7033 100644 (file)
 +      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);
 +}
index 8d7e7b2968f22de28c74de82da770e3a67c6906e..a886a02a0c3cb1a5770e2a3a24d71ab68ecc0dd3 100644 (file)
 +      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);
 +}