[MIPS] Cobalt: Fix UART I/O type
The Cobalt UART is actually connected to memory resource area. Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
e03b526932
commit
0cfd526747
|
@ -130,7 +130,7 @@ void __init plat_mem_setup(void)
|
||||||
|
|
||||||
set_io_port_base(CKSEG1ADDR(GT_DEF_PCI0_IO_BASE));
|
set_io_port_base(CKSEG1ADDR(GT_DEF_PCI0_IO_BASE));
|
||||||
|
|
||||||
/* I/O port resource must include UART and LCD/buttons */
|
/* I/O port resource must include LCD/buttons */
|
||||||
ioport_resource.end = 0x0fffffff;
|
ioport_resource.end = 0x0fffffff;
|
||||||
|
|
||||||
/* request I/O space for devices used on all i[345]86 PCs */
|
/* request I/O space for devices used on all i[345]86 PCs */
|
||||||
|
@ -149,24 +149,24 @@ void __init plat_mem_setup(void)
|
||||||
register_pci_controller(&cobalt_pci_controller);
|
register_pci_controller(&cobalt_pci_controller);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SERIAL_8250
|
|
||||||
if (cobalt_board_id > COBALT_BRD_ID_RAQ1) {
|
if (cobalt_board_id > COBALT_BRD_ID_RAQ1) {
|
||||||
|
|
||||||
#ifdef CONFIG_EARLY_PRINTK
|
#ifdef CONFIG_EARLY_PRINTK
|
||||||
cobalt_early_console();
|
cobalt_early_console();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_SERIAL_8250
|
||||||
uart.line = 0;
|
uart.line = 0;
|
||||||
uart.type = PORT_UNKNOWN;
|
uart.type = PORT_UNKNOWN;
|
||||||
uart.uartclk = 18432000;
|
uart.uartclk = 18432000;
|
||||||
uart.irq = COBALT_SERIAL_IRQ;
|
uart.irq = COBALT_SERIAL_IRQ;
|
||||||
uart.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST;
|
uart.flags = UPF_IOREMAP | UPF_BOOT_AUTOCONF |
|
||||||
uart.iobase = 0xc800000;
|
UPF_SKIP_TEST;
|
||||||
uart.iotype = UPIO_PORT;
|
uart.iotype = UPIO_MEM;
|
||||||
|
uart.mapbase = 0x1c800000;
|
||||||
|
|
||||||
early_serial_setup(&uart);
|
early_serial_setup(&uart);
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue