提交 b086e97b 编写于 作者: R Richard Zhao 提交者: Sascha Hauer

arm: plat-mxc: add full parameter macro to define gpio port

Signed-off-by: NRichard Zhao <richard.zhao@freescale.com>
Acked-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
上级 626d90c8
...@@ -350,15 +350,18 @@ int __init mxc_gpio_init(struct mxc_gpio_port *port, int cnt) ...@@ -350,15 +350,18 @@ int __init mxc_gpio_init(struct mxc_gpio_port *port, int cnt)
return 0; return 0;
} }
#define DEFINE_IMX_GPIO_PORT_IRQ(soc, _id, _hwid, _irq) \ #define DEFINE_IMX_GPIO_PORT_IRQ_HIGH(soc, _id, _hwid, _irq, _irq_high) \
{ \ { \
.chip.label = "gpio-" #_id, \ .chip.label = "gpio-" #_id, \
.irq = _irq, \ .irq = _irq, \
.irq_high = _irq_high, \
.base = soc ## _IO_ADDRESS( \ .base = soc ## _IO_ADDRESS( \
soc ## _GPIO ## _hwid ## _BASE_ADDR), \ soc ## _GPIO ## _hwid ## _BASE_ADDR), \
.virtual_irq_start = MXC_GPIO_IRQ_START + (_id) * 32, \ .virtual_irq_start = MXC_GPIO_IRQ_START + (_id) * 32, \
} }
#define DEFINE_IMX_GPIO_PORT_IRQ(soc, _id, _hwid, _irq) \
DEFINE_IMX_GPIO_PORT_IRQ_HIGH(soc, _id, _hwid, _irq, 0)
#define DEFINE_IMX_GPIO_PORT(soc, _id, _hwid) \ #define DEFINE_IMX_GPIO_PORT(soc, _id, _hwid) \
DEFINE_IMX_GPIO_PORT_IRQ(soc, _id, _hwid, 0) DEFINE_IMX_GPIO_PORT_IRQ(soc, _id, _hwid, 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册