aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-ab8505.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2013-01-31 04:57:52 -0500
committerLinus Walleij <linus.walleij@linaro.org>2013-02-10 09:44:33 -0500
commita6a16d274e734afa769a9651dfaf8315d404c116 (patch)
tree123e91e276d7b6b77f362cc1b59fb0fe78447bb5 /drivers/pinctrl/pinctrl-ab8505.c
parentac652d7941f84c24cb27378aefbb4015f4c1da67 (diff)
pinctrl/abx500: replace IRQ offsets with table read-in values
The ABx500 GPIO controller used to provide a set of virtual contiguous IRQs for use by sub-devices, but they have been removed after a request from Mainline Maintainers. Now the AB8500 core driver deals with almost all IRQ related issues instead. The ABx500 GPIO driver is now only used to convert between GPIO and IRQ numbers which is actually quite difficult, as the ABx500 GPIO's associated IRQs are clustered together throughout the interrupt number space at irregular intervals. To solve this quandary, we have placed the read-in values into the existing cluster information table to use during conversion. Signed-off-by: Lee Jones <lee.jones@linaro.org> [Moved irq_base removal into this patch] Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-ab8505.c')
-rw-r--r--drivers/pinctrl/pinctrl-ab8505.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/pinctrl/pinctrl-ab8505.c b/drivers/pinctrl/pinctrl-ab8505.c
index 825710afb2e1..f8075c6c24f7 100644
--- a/drivers/pinctrl/pinctrl-ab8505.c
+++ b/drivers/pinctrl/pinctrl-ab8505.c
@@ -349,11 +349,11 @@ struct alternate_functions ab8505_alternate_functions[AB8505_GPIO_MAX_NUMBER + 1
349 * GPIO52 to GPIO53 349 * GPIO52 to GPIO53
350 */ 350 */
351struct abx500_gpio_irq_cluster ab8505_gpio_irq_cluster[] = { 351struct abx500_gpio_irq_cluster ab8505_gpio_irq_cluster[] = {
352 GPIO_IRQ_CLUSTER(10, 11, 0), 352 GPIO_IRQ_CLUSTER(10, 11, 34),
353 GPIO_IRQ_CLUSTER(13, 13, 0), 353 GPIO_IRQ_CLUSTER(13, 13, 34),
354 GPIO_IRQ_CLUSTER(40, 41, 0), 354 GPIO_IRQ_CLUSTER(40, 41, 14),
355 GPIO_IRQ_CLUSTER(50, 50, 0), 355 GPIO_IRQ_CLUSTER(50, 50, 63),
356 GPIO_IRQ_CLUSTER(52, 53, 0), 356 GPIO_IRQ_CLUSTER(52, 53, 63),
357}; 357};
358 358
359static struct abx500_pinctrl_soc_data ab8505_soc = { 359static struct abx500_pinctrl_soc_data ab8505_soc = {