diff options
author | Maxime Bizon <mbizon@freebox.fr> | 2012-10-19 04:45:07 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-24 14:34:51 -0400 |
commit | 08ec212c0f92cbf30e3ecc7349f18151714041d6 (patch) | |
tree | 625afda99083d4c04aa3899b1470f6d03135e052 /drivers/tty/serial | |
parent | 7a0c4edae99da6ab3d402deb0d88410251c6ac63 (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 'drivers/tty/serial')
-rw-r--r-- | drivers/tty/serial/8250/8250_pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index 17b7d26abf41..cec8852dd1b6 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c | |||
@@ -1068,7 +1068,7 @@ ce4100_serial_setup(struct serial_private *priv, | |||
1068 | { | 1068 | { |
1069 | int ret; | 1069 | int ret; |
1070 | 1070 | ||
1071 | ret = setup_port(priv, port, 0, 0, board->reg_shift); | 1071 | ret = setup_port(priv, port, idx, 0, board->reg_shift); |
1072 | port->port.iotype = UPIO_MEM32; | 1072 | port->port.iotype = UPIO_MEM32; |
1073 | port->port.type = PORT_XSCALE; | 1073 | port->port.type = PORT_XSCALE; |
1074 | port->port.flags = (port->port.flags | UPF_FIXED_PORT | UPF_FIXED_TYPE); | 1074 | port->port.flags = (port->port.flags | UPF_FIXED_PORT | UPF_FIXED_TYPE); |
@@ -2658,8 +2658,8 @@ static struct pciserial_board pci_boards[] __devinitdata = { | |||
2658 | .first_offset = 0x1000, | 2658 | .first_offset = 0x1000, |
2659 | }, | 2659 | }, |
2660 | [pbn_ce4100_1_115200] = { | 2660 | [pbn_ce4100_1_115200] = { |
2661 | .flags = FL_BASE0, | 2661 | .flags = FL_BASE_BARS, |
2662 | .num_ports = 1, | 2662 | .num_ports = 2, |
2663 | .base_baud = 921600, | 2663 | .base_baud = 921600, |
2664 | .reg_shift = 2, | 2664 | .reg_shift = 2, |
2665 | }, | 2665 | }, |