]> git.baikalelectronics.ru Git - kernel.git/commit
spi/spi-gpio: add support for controllers without MISO or MOSI pin
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 30 Jun 2010 20:27:37 +0000 (14:27 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Sun, 4 Jul 2010 04:45:44 +0000 (22:45 -0600)
commita4597c003e031ae7fcb0a41651afb2b21963ae24
tree52761ad5f2229d0b176ca36b7107a0ec43e1168f
parentebecd62d112956310d55bf4b98989533b07a8fc3
spi/spi-gpio: add support for controllers without MISO or MOSI pin

There are some boards that do not strictly follow SPI standard and use
only 3 wires (SCLK, MOSI or MISO, SS) for connecting some simple auxiliary
chips and controls them with GPIO based 'spi controller'. In this
configuration the MISO or MOSI line is missing (it is not required if the
chip does not transfer any data back to host or host only reads data from
chip).

This patch adds support for such non-standard configuration in GPIO-based
SPI controller. It has been tested in configuration without MISO pin.

Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi_gpio.c
include/linux/spi/spi_gpio.h