mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
CONFIG_SERIAL_PORT to 0 select ch-a (0x20 offset), other value select ch-b (0x00 offset). Idea from Blue Swirl
git-svn-id: svn://coreboot.org/openbios/openbios-devel@406 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -148,7 +148,7 @@ entry( void )
|
|||||||
|
|
||||||
isa_io_base = arch->io_base;
|
isa_io_base = arch->io_base;
|
||||||
|
|
||||||
uart_init(0x80013000ULL + CONFIG_SERIAL_PORT * 0x20,
|
uart_init(0x80013000ULL + (CONFIG_SERIAL_PORT ? 0 : 0x20),
|
||||||
CONFIG_SERIAL_SPEED);
|
CONFIG_SERIAL_SPEED);
|
||||||
|
|
||||||
printk("\n");
|
printk("\n");
|
||||||
|
|||||||
@@ -443,6 +443,6 @@ escc_init(const char *path, unsigned long addr)
|
|||||||
escc_add_channel(buf, "b", addr, 0);
|
escc_add_channel(buf, "b", addr, 0);
|
||||||
|
|
||||||
serial_dev = (unsigned char *)addr + IO_ESCC_OFFSET +
|
serial_dev = (unsigned char *)addr + IO_ESCC_OFFSET +
|
||||||
0x20 * CONFIG_SERIAL_PORT;
|
(CONFIG_SERIAL_PORT ? 0 : 0x20);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user