[brcm63xx] fix spi chip select configuration
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 26 Apr 2010 13:33:48 +0000 (13:33 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 26 Apr 2010 13:33:48 +0000 (13:33 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21164 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 2c63623..319d21c 100644 (file)
 +      if (is_on == BITBANG_CS_INACTIVE)
 +              val |= SPI_CMD_NOOP;
 +      else if (is_on == BITBANG_CS_ACTIVE)
 +      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);
 +}
 +
 +      bcm_spi_writew(val, bs->regs, SPI_CMD);
 +}
index 8d7e7b2..a886a02 100644 (file)
 +      if (is_on == BITBANG_CS_INACTIVE)
 +              val |= SPI_CMD_NOOP;
 +      else if (is_on == BITBANG_CS_ACTIVE)
 +      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);
 +}
 +
 +      bcm_spi_writew(val, bs->regs, SPI_CMD);
 +}
This page took 0.028337 seconds and 4 git commands to generate.