diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2009-04-07 06:00:51 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-07 19:31:06 +0400 |
commit | 42c78b2bf51bafb4cfa98dfecc28dd9b8bcd04b0 (patch) | |
tree | 12960b010ec28ff6e5cfeb4a640681464781f51e /block/genhd.c | |
parent | e7d02e3c9577f070bc77354763bed7f24713dc53 (diff) | |
download | linux-42c78b2bf51bafb4cfa98dfecc28dd9b8bcd04b0.tar.xz |
Blackfin SPI Driver: Add GPIO controlled SPI Slave Select support
Add support for GPIO controlled SPI Chip Selects. To make use of this
feature, set chip_select = 0 and add a proper cs_gpio to your
controller_data.
struct spi_board_info
.chip_select = 0
struct bfin5xx_spi_chip
.cs_gpio = GPIO_P###
There are various SPI devices that require SPI MODE_0, and need to have
the Chip Selects asserted during the entire transfer. Consider using
SPI_MODE_3 (SPI_CPHA | SPI_CPOL) if your device allows it.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'block/genhd.c')
0 files changed, 0 insertions, 0 deletions