]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/spi/spi_gpio.h
spi/spi-gpio: add support for controllers without MISO or MOSI pin
[net-next-2.6.git] / include / linux / spi / spi_gpio.h
index ca6782ee4b9fce4f9208020e552129db6f0fbd5a..369b3d7d5b956069f3773e6fd4610cb278c8f757 100644 (file)
  * SPI_GPIO_NO_CHIPSELECT to the controller_data:
  *             .controller_data = (void *) SPI_GPIO_NO_CHIPSELECT;
  *
+ * If the MISO or MOSI pin is not available then it should be set to
+ * SPI_GPIO_NO_MISO or SPI_GPIO_NO_MOSI.
+ *
  * If the bitbanged bus is later switched to a "native" controller,
  * that platform_device and controller_data should be removed.
  */
 
 #define SPI_GPIO_NO_CHIPSELECT         ((unsigned long)-1l)
+#define SPI_GPIO_NO_MISO               ((unsigned long)-1l)
+#define SPI_GPIO_NO_MOSI               ((unsigned long)-1l)
 
 /**
  * struct spi_gpio_platform_data - parameter for bitbanged SPI master