diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-12-04 21:12:28 -0500 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-07-01 09:57:16 -0400 |
commit | 438196c371cb32f0eacaf2a44166d9a0cf37c4a8 (patch) | |
tree | 8e502f38302ba1226444c73aaa84aae86464583f /arch/arm/mach-imx/mach-cpuimx27.c | |
parent | ed175343b4b53d686e30b1e37fb94e142f56fa2f (diff) |
ARM: imx: eliminate macro IRQ_GPIOx()
This patch changes all the static gpio irq number assigning with
IRQ_GPIOA() ... IRQ_GPIOF() to run-time assigning with gpio_to_irq
call, and in turn eliminates these macros.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/mach-cpuimx27.c')
-rw-r--r-- | arch/arm/mach-imx/mach-cpuimx27.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/mach-cpuimx27.c b/arch/arm/mach-imx/mach-cpuimx27.c index d085aea08709..fe74c84a1f4e 100644 --- a/arch/arm/mach-imx/mach-cpuimx27.c +++ b/arch/arm/mach-imx/mach-cpuimx27.c | |||
@@ -169,28 +169,28 @@ static struct i2c_board_info eukrea_cpuimx27_i2c_devices[] = { | |||
169 | static struct plat_serial8250_port serial_platform_data[] = { | 169 | static struct plat_serial8250_port serial_platform_data[] = { |
170 | { | 170 | { |
171 | .mapbase = (unsigned long)(MX27_CS3_BASE_ADDR + 0x200000), | 171 | .mapbase = (unsigned long)(MX27_CS3_BASE_ADDR + 0x200000), |
172 | .irq = IRQ_GPIOB(23), | 172 | /* irq number is run-time assigned */ |
173 | .uartclk = 14745600, | 173 | .uartclk = 14745600, |
174 | .regshift = 1, | 174 | .regshift = 1, |
175 | .iotype = UPIO_MEM, | 175 | .iotype = UPIO_MEM, |
176 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP, | 176 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP, |
177 | }, { | 177 | }, { |
178 | .mapbase = (unsigned long)(MX27_CS3_BASE_ADDR + 0x400000), | 178 | .mapbase = (unsigned long)(MX27_CS3_BASE_ADDR + 0x400000), |
179 | .irq = IRQ_GPIOB(22), | 179 | /* irq number is run-time assigned */ |
180 | .uartclk = 14745600, | 180 | .uartclk = 14745600, |
181 | .regshift = 1, | 181 | .regshift = 1, |
182 | .iotype = UPIO_MEM, | 182 | .iotype = UPIO_MEM, |
183 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP, | 183 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP, |
184 | }, { | 184 | }, { |
185 | .mapbase = (unsigned long)(MX27_CS3_BASE_ADDR + 0x800000), | 185 | .mapbase = (unsigned long)(MX27_CS3_BASE_ADDR + 0x800000), |
186 | .irq = IRQ_GPIOB(27), | 186 | /* irq number is run-time assigned */ |
187 | .uartclk = 14745600, | 187 | .uartclk = 14745600, |
188 | .regshift = 1, | 188 | .regshift = 1, |
189 | .iotype = UPIO_MEM, | 189 | .iotype = UPIO_MEM, |
190 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP, | 190 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP, |
191 | }, { | 191 | }, { |
192 | .mapbase = (unsigned long)(MX27_CS3_BASE_ADDR + 0x1000000), | 192 | .mapbase = (unsigned long)(MX27_CS3_BASE_ADDR + 0x1000000), |
193 | .irq = IRQ_GPIOB(30), | 193 | /* irq number is run-time assigned */ |
194 | .uartclk = 14745600, | 194 | .uartclk = 14745600, |
195 | .regshift = 1, | 195 | .regshift = 1, |
196 | .iotype = UPIO_MEM, | 196 | .iotype = UPIO_MEM, |
@@ -279,6 +279,10 @@ static void __init eukrea_cpuimx27_init(void) | |||
279 | #endif | 279 | #endif |
280 | 280 | ||
281 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) | 281 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) |
282 | serial_platform_data[0].irq = IMX_GPIO_NR(2, 23); | ||
283 | serial_platform_data[1].irq = IMX_GPIO_NR(2, 22); | ||
284 | serial_platform_data[2].irq = IMX_GPIO_NR(2, 27); | ||
285 | serial_platform_data[3].irq = IMX_GPIO_NR(2, 30); | ||
282 | platform_device_register(&serial_device); | 286 | platform_device_register(&serial_device); |
283 | #endif | 287 | #endif |
284 | 288 | ||