diff options
author | Aaro Koskinen <aaro.koskinen@nokia.com> | 2010-02-16 16:06:14 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-04-29 13:03:49 -0400 |
commit | cc761beda2426cf663a649b905b6643673ff7b30 (patch) | |
tree | f80711b8128c855afb5e8a6d1cef69656f91f272 /arch/arm/mach-iop32x | |
parent | 28d7f4ec98a8edb029ef24c1ee4af6a1ccbc9633 (diff) |
ARM: 5943/1: iop: n2100: enable serial interrupt
Thecus N2100 has a jumper (J3/J4) to select whether the XINT1 interrupt
line is connected to the second UHCI controller (position J3) or to
the serial port UART (position J4). Currently, the kernel is hardcoded
to assume the J3 position, and the serial port is always being used in
polling mode.
The patch adds the IRQ autodetection flag for the serial port interrupt,
and also marks it as shared (as the driver for the second UHCI controller
will request the interrupt in any case). Now, when the jumper is set to
the J4 position, the serial port will have an interrupt line, resulting
in less CPU overhead and faster throughput.
Tested-by: Mikael Pettersson <mikpe@it.uu.se>
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-iop32x')
-rw-r--r-- | arch/arm/mach-iop32x/n2100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-iop32x/n2100.c b/arch/arm/mach-iop32x/n2100.c index 2a5c637639b..266b1f58a78 100644 --- a/arch/arm/mach-iop32x/n2100.c +++ b/arch/arm/mach-iop32x/n2100.c | |||
@@ -177,7 +177,7 @@ static struct plat_serial8250_port n2100_serial_port[] = { | |||
177 | .mapbase = N2100_UART, | 177 | .mapbase = N2100_UART, |
178 | .membase = (char *)N2100_UART, | 178 | .membase = (char *)N2100_UART, |
179 | .irq = 0, | 179 | .irq = 0, |
180 | .flags = UPF_SKIP_TEST, | 180 | .flags = UPF_SKIP_TEST | UPF_AUTO_IRQ | UPF_SHARE_IRQ, |
181 | .iotype = UPIO_MEM, | 181 | .iotype = UPIO_MEM, |
182 | .regshift = 0, | 182 | .regshift = 0, |
183 | .uartclk = 1843200, | 183 | .uartclk = 1843200, |