summaryrefslogtreecommitdiff
path: root/drivers/mfd/max77663-core.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-08-22 16:42:46 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:32:06 -0700
commitd37d4b51930113d790ed2dcfa80acd5c8753ea3c (patch)
tree97d167bf47d13d0ca3139c71a45d3d817b131245 /drivers/mfd/max77663-core.c
parent9a0756e399d6dab7302a7a563b72d363afc33d51 (diff)
mfd: max77663: add GPIO TOP interrupt in interrupt list
Add GPIO_TOP interrupt in interrupt list so that gpio driver of this device can register this interrupt to get gpio interrupts. This is towards moving the gpio support as independent driver. Change-Id: I8983cd0eb195ca3d88f7c59dbed1c67f5393313a Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/125238 Reviewed-by: Automatic_Commit_Validation_User Rebase-Id: Rdb11396416dbcbf81967dab71897fbf0ce38bc15
Diffstat (limited to 'drivers/mfd/max77663-core.c')
-rw-r--r--drivers/mfd/max77663-core.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mfd/max77663-core.c b/drivers/mfd/max77663-core.c
index 8d332364b235..a42cf9f40cff 100644
--- a/drivers/mfd/max77663-core.c
+++ b/drivers/mfd/max77663-core.c
@@ -180,6 +180,13 @@ struct max77663_chip *max77663_chip;
.cache_idx = CACHE_IRQ_LBT, \
}
+#define IRQ_DATA_GPIO_TOP() \
+ [MAX77663_IRQ_INT_TOP_GPIO] = { \
+ .top_mask = IRQ_TOP_GPIO_MASK, \
+ .top_shift = IRQ_TOP_GPIO_SHIFT, \
+ .cache_idx = -1, \
+ }
+
#define IRQ_DATA_GPIO(_name) \
[MAX77663_IRQ_GPIO##_name] = { \
.mask = (1 << _name), \
@@ -198,6 +205,7 @@ struct max77663_chip *max77663_chip;
}
static struct max77663_irq_data max77663_irqs[MAX77663_IRQ_NR] = {
+ IRQ_DATA_GPIO_TOP(),
IRQ_DATA_LBT(LB, 3),
IRQ_DATA_LBT(THERM_ALRM1, 2),
IRQ_DATA_LBT(THERM_ALRM2, 1),