msm: 8064: Add IRQ related platform data for SX1509 Expander
The ADV7612 Tuner card connected to SX1509 expander generates
interrupts on the GPIO lines of the expander. Since there was
no IRQ platform data passed, SX1509 driver does not configure
the expander to handle interrupts coming off to its GPIOs,
consequently userspace cannot control the irq lines of ADV7612
tuner card successfully.
Add the IRQ related platform data to let SX1509 driver configure
the device to properly handle interrupts.
Change-Id: I07f6e395a0b974a5592e3cd48cc68338135d9721
Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8064.c b/arch/arm/mach-msm/board-8064.c
index 99a3ed2..dbc47eb 100644
--- a/arch/arm/mach-msm/board-8064.c
+++ b/arch/arm/mach-msm/board-8064.c
@@ -2346,6 +2346,8 @@
},
};
+#define SX150X_EXP1_INT_N PM8921_MPP_IRQ(PM8921_IRQ_BASE, 9)
+
struct sx150x_platform_data mpq8064_sx150x_pdata[] = {
[SX150X_EXP1] = {
.gpio_base = SX150X_EXP1_GPIO_BASE,
@@ -2354,7 +2356,8 @@
.io_pulldn_ena = 0x0,
.io_open_drain_ena = 0x0,
.io_polarity = 0,
- .irq_summary = -1,
+ .irq_summary = SX150X_EXP1_INT_N,
+ .irq_base = SX150X_EXP1_IRQ_BASE,
},
[SX150X_EXP2] = {
.gpio_base = SX150X_EXP2_GPIO_BASE,