aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-mxc/gpio.c
diff options
context:
space:
mode:
authorRichard Zhao <richard.zhao@freescale.com>2010-12-30 06:25:01 -0500
committerSascha Hauer <s.hauer@pengutronix.de>2011-01-03 03:38:27 -0500
commitb086e97b20f150e81609a04ed7da92e12d77f1b0 (patch)
tree9c2b8f4457db74a68f8161b586f7c4e9309b7168 /arch/arm/plat-mxc/gpio.c
parent626d90c884591005fdaa9464de81731aab23b864 (diff)
arm: plat-mxc: add full parameter macro to define gpio port
Signed-off-by: Richard Zhao <richard.zhao@freescale.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/gpio.c')
-rw-r--r--arch/arm/plat-mxc/gpio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/plat-mxc/gpio.c b/arch/arm/plat-mxc/gpio.c
index 93a8d93dcc2e..dd4f81348c9e 100644
--- a/arch/arm/plat-mxc/gpio.c
+++ b/arch/arm/plat-mxc/gpio.c
@@ -350,15 +350,18 @@ int __init mxc_gpio_init(struct mxc_gpio_port *port, int cnt)
350 return 0; 350 return 0;
351} 351}
352 352
353#define DEFINE_IMX_GPIO_PORT_IRQ(soc, _id, _hwid, _irq) \ 353#define DEFINE_IMX_GPIO_PORT_IRQ_HIGH(soc, _id, _hwid, _irq, _irq_high) \
354 { \ 354 { \
355 .chip.label = "gpio-" #_id, \ 355 .chip.label = "gpio-" #_id, \
356 .irq = _irq, \ 356 .irq = _irq, \
357 .irq_high = _irq_high, \
357 .base = soc ## _IO_ADDRESS( \ 358 .base = soc ## _IO_ADDRESS( \
358 soc ## _GPIO ## _hwid ## _BASE_ADDR), \ 359 soc ## _GPIO ## _hwid ## _BASE_ADDR), \
359 .virtual_irq_start = MXC_GPIO_IRQ_START + (_id) * 32, \ 360 .virtual_irq_start = MXC_GPIO_IRQ_START + (_id) * 32, \
360 } 361 }
361 362
363#define DEFINE_IMX_GPIO_PORT_IRQ(soc, _id, _hwid, _irq) \
364 DEFINE_IMX_GPIO_PORT_IRQ_HIGH(soc, _id, _hwid, _irq, 0)
362#define DEFINE_IMX_GPIO_PORT(soc, _id, _hwid) \ 365#define DEFINE_IMX_GPIO_PORT(soc, _id, _hwid) \
363 DEFINE_IMX_GPIO_PORT_IRQ(soc, _id, _hwid, 0) 366 DEFINE_IMX_GPIO_PORT_IRQ(soc, _id, _hwid, 0)
364 367