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:
Laurent Vivier
2009-01-13 20:24:52 +00:00
parent b599634ceb
commit f89783c5e4
2 changed files with 2 additions and 2 deletions

View File

@@ -148,7 +148,7 @@ entry( void )
isa_io_base = arch->io_base;
uart_init(0x80013000ULL + CONFIG_SERIAL_PORT * 0x20,
uart_init(0x80013000ULL + (CONFIG_SERIAL_PORT ? 0 : 0x20),
CONFIG_SERIAL_SPEED);
printk("\n");

View File

@@ -443,6 +443,6 @@ escc_init(const char *path, unsigned long addr)
escc_add_channel(buf, "b", addr, 0);
serial_dev = (unsigned char *)addr + IO_ESCC_OFFSET +
0x20 * CONFIG_SERIAL_PORT;
(CONFIG_SERIAL_PORT ? 0 : 0x20);
}
#endif