summaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2010-04-16 13:22:12 +0300
committerJohn W. Linville <linville@tuxdriver.com>2010-04-16 15:47:14 -0400
commita02a2956809d88b42b9a1f8003d60a343353b5ea (patch)
tree58f3375f5b8c54ca68ca32ae30b705e11c2457af /include/linux/spi
parent7f1f5a0060e377ff6a15903487b39223e12b8568 (diff)
downloadop-kernel-dev-a02a2956809d88b42b9a1f8003d60a343353b5ea.zip
op-kernel-dev-a02a2956809d88b42b9a1f8003d60a343353b5ea.tar.gz
wl1251: add support for dedicated IRQ line
wl1251 has WLAN_IRQ pin for generating interrupts to host processor, which is mandatory in SPI mode and optional in SDIO mode (which can use SDIO interrupts instead). However TI recommends using deditated IRQ line for SDIO too. Add support for using dedicated interrupt line with SDIO, but also leave ability to switch to SDIO interrupts in case it's needed. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Reviewed-by: Bob Copeland <me@bobcopeland.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/spi')
-rw-r--r--include/linux/spi/wl12xx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/spi/wl12xx.h b/include/linux/spi/wl12xx.h
index aed64ed..a223ecb 100644
--- a/include/linux/spi/wl12xx.h
+++ b/include/linux/spi/wl12xx.h
@@ -26,6 +26,8 @@
struct wl12xx_platform_data {
void (*set_power)(bool enable);
+ /* SDIO only: IRQ number if WLAN_IRQ line is used, 0 for SDIO IRQs */
+ int irq;
bool use_eeprom;
};
OpenPOWER on IntegriCloud