diff options
author | Marc Zyngier <maz@misterjones.org> | 2009-11-14 09:53:14 -0500 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2009-11-30 20:03:04 -0500 |
commit | 3fe6ccffcbc6c79512fe9bea5c10de75ae0c497e (patch) | |
tree | 7ec2edfc3bdc32c8504665cd535db41a208cee7c /arch/arm/mach-pxa | |
parent | 2fd8e55e13daecc729e893636a06b5133d872852 (diff) |
[ARM] pxa/viper: convert to use plat_serial8250_port irqflags field
Use .irqflags in the plat_serial8250_port structure to set IRQ
polarity, and get rid of the corresponding set_irq_type().
Signed-off-by: Marc Zyngier <maz@misterjones.org>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r-- | arch/arm/mach-pxa/viper.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/arm/mach-pxa/viper.c b/arch/arm/mach-pxa/viper.c index 6c36bd9f3b55..cf0d71b7797e 100644 --- a/arch/arm/mach-pxa/viper.c +++ b/arch/arm/mach-pxa/viper.c | |||
@@ -301,15 +301,6 @@ static void __init viper_init_irq(void) | |||
301 | set_irq_chained_handler(gpio_to_irq(VIPER_CPLD_GPIO), | 301 | set_irq_chained_handler(gpio_to_irq(VIPER_CPLD_GPIO), |
302 | viper_irq_handler); | 302 | viper_irq_handler); |
303 | set_irq_type(gpio_to_irq(VIPER_CPLD_GPIO), IRQ_TYPE_EDGE_BOTH); | 303 | set_irq_type(gpio_to_irq(VIPER_CPLD_GPIO), IRQ_TYPE_EDGE_BOTH); |
304 | |||
305 | #ifndef CONFIG_SERIAL_PXA | ||
306 | /* | ||
307 | * 8250 doesn't support IRQ_TYPE being passed as part | ||
308 | * of the plat_serial8250_port structure... | ||
309 | */ | ||
310 | set_irq_type(gpio_to_irq(VIPER_UARTA_GPIO), IRQ_TYPE_EDGE_RISING); | ||
311 | set_irq_type(gpio_to_irq(VIPER_UARTB_GPIO), IRQ_TYPE_EDGE_RISING); | ||
312 | #endif | ||
313 | } | 304 | } |
314 | 305 | ||
315 | /* Flat Panel */ | 306 | /* Flat Panel */ |
@@ -539,6 +530,7 @@ static struct plat_serial8250_port serial_platform_data[] = { | |||
539 | { | 530 | { |
540 | .mapbase = VIPER_UARTA_PHYS, | 531 | .mapbase = VIPER_UARTA_PHYS, |
541 | .irq = gpio_to_irq(VIPER_UARTA_GPIO), | 532 | .irq = gpio_to_irq(VIPER_UARTA_GPIO), |
533 | .irqflags = IRQF_TRIGGER_RISING, | ||
542 | .uartclk = 1843200, | 534 | .uartclk = 1843200, |
543 | .regshift = 1, | 535 | .regshift = 1, |
544 | .iotype = UPIO_MEM, | 536 | .iotype = UPIO_MEM, |
@@ -548,6 +540,7 @@ static struct plat_serial8250_port serial_platform_data[] = { | |||
548 | { | 540 | { |
549 | .mapbase = VIPER_UARTB_PHYS, | 541 | .mapbase = VIPER_UARTB_PHYS, |
550 | .irq = gpio_to_irq(VIPER_UARTB_GPIO), | 542 | .irq = gpio_to_irq(VIPER_UARTB_GPIO), |
543 | .irqflags = IRQF_TRIGGER_RISING, | ||
551 | .uartclk = 1843200, | 544 | .uartclk = 1843200, |
552 | .regshift = 1, | 545 | .regshift = 1, |
553 | .iotype = UPIO_MEM, | 546 | .iotype = UPIO_MEM, |