aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/platform
diff options
context:
space:
mode:
authorMaxime Bizon <mbizon@freebox.fr>2012-10-19 04:45:07 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-24 14:34:51 -0400
commit08ec212c0f92cbf30e3ecc7349f18151714041d6 (patch)
tree625afda99083d4c04aa3899b1470f6d03135e052 /arch/x86/platform
parent7a0c4edae99da6ab3d402deb0d88410251c6ac63 (diff)
x86: ce4100: allow second UART usage
The current CE4100 and 8250_pci code have both a limitation preventing the registration and usage of CE4100's second UART. This patch changes the platform code fixing up the UART port to work on a relative UART port base address, as well as the 8250_pci code to make it register 2 UART ports for CE4100 and pass the port index down to all consumers. Signed-off-by: Florian Fainelli <ffainelli@freebox.fr> Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/platform')
-rw-r--r--arch/x86/platform/ce4100/ce4100.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/platform/ce4100/ce4100.c b/arch/x86/platform/ce4100/ce4100.c
index 4c61b52191eb..0dcc30e9df8c 100644
--- a/arch/x86/platform/ce4100/ce4100.c
+++ b/arch/x86/platform/ce4100/ce4100.c
@@ -92,8 +92,11 @@ static void ce4100_serial_fixup(int port, struct uart_port *up,
92 up->membase = 92 up->membase =
93 (void __iomem *)__fix_to_virt(FIX_EARLYCON_MEM_BASE); 93 (void __iomem *)__fix_to_virt(FIX_EARLYCON_MEM_BASE);
94 up->membase += up->mapbase & ~PAGE_MASK; 94 up->membase += up->mapbase & ~PAGE_MASK;
95 up->mapbase += port * 0x100;
96 up->membase += port * 0x100;
95 up->iotype = UPIO_MEM32; 97 up->iotype = UPIO_MEM32;
96 up->regshift = 2; 98 up->regshift = 2;
99 up->irq = 4;
97 } 100 }
98#endif 101#endif
99 up->iobase = 0; 102 up->iobase = 0;