mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
serial: sirf: fix the amount of serial ports
SiRFprimaII has three uart ports and three USP-based ports, so there are totally six lines instead of five. Signed-off-by: Qipan Li <Qipan.Li@csr.com> Signed-off-by: Barry Song <Baohua.Song@csr.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
459f15c45e
commit
b60dfbae41
2 changed files with 8 additions and 1 deletions
|
@ -96,6 +96,13 @@ static struct sirfsoc_uart_port sirfsoc_uart_ports[SIRFSOC_UART_NR] = {
|
|||
.line = 4,
|
||||
},
|
||||
},
|
||||
[5] = {
|
||||
.port = {
|
||||
.iotype = UPIO_MEM,
|
||||
.flags = UPF_BOOT_AUTOCONF,
|
||||
.line = 5,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
static inline struct sirfsoc_uart_port *to_sirfport(struct uart_port *port)
|
||||
|
|
|
@ -365,7 +365,7 @@ struct sirfsoc_uart_register sirfsoc_uart = {
|
|||
#define SIRFSOC_UART_MINOR 0
|
||||
#define SIRFUART_PORT_NAME "sirfsoc-uart"
|
||||
#define SIRFUART_MAP_SIZE 0x200
|
||||
#define SIRFSOC_UART_NR 5
|
||||
#define SIRFSOC_UART_NR 6
|
||||
#define SIRFSOC_PORT_TYPE 0xa5
|
||||
|
||||
/* Baud Rate Calculation */
|
||||
|
|
Loading…
Reference in a new issue