author | Brian Niebuhr <bniebuhr@efjohnson.com> | |
Fri, 13 Aug 2010 04:41:03 +0000 (10:11 +0530) | ||
committer | Sekhar Nori <nsekhar@ti.com> | |
Thu, 18 Nov 2010 13:08:24 +0000 (18:38 +0530) | ||
commit | 7978b8c385a86f0b5b9304e81a1dfb5dcaf21528 | |
tree | ff13c4dd8d8cd570d57d50f072e8cdab3c97ea5f | tree | snapshot (tar.xz tar.gz zip) |
parent | 843a713bc53d04f8fac46ddd8693a2cc0422ca5e | commit | diff |
spi: davinci: enable both activation and deactivation of chip-selects
Let davinci_spi_chipselect() perform both activation and
deactivation of chip selects. This lets spi_bitbang fully
control chip select activation, as intended by the SPI API.
With this change, the chip select activation code need not
be duplicated in davinci_spi_bufs_{pio|dma}().
Also, keeping chip select active control is removed as a
platform data and simply controlled using information from
spi_bitbang on whether chip slect should be activated or
de-activated.
Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Tested-By: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Let davinci_spi_chipselect() perform both activation and
deactivation of chip selects. This lets spi_bitbang fully
control chip select activation, as intended by the SPI API.
With this change, the chip select activation code need not
be duplicated in davinci_spi_bufs_{pio|dma}().
Also, keeping chip select active control is removed as a
platform data and simply controlled using information from
spi_bitbang on whether chip slect should be activated or
de-activated.
Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Tested-By: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>