diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2011-04-22 02:17:26 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2011-04-22 02:17:26 +0000 |
commit | f349d55beb6d93aca4d49ac4515c5ef11bb58d8d (patch) | |
tree | 2523dba6b117e5769e4e389b6166a66ff41386fc /src/console | |
parent | 6aca1e8b26e712d056816ba936fb4d5834a07467 (diff) | |
download | coreboot-f349d55beb6d93aca4d49ac4515c5ef11bb58d8d.tar.xz |
Get rid of all but one (I/O mapped) UART init functions.
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6539 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/console')
-rw-r--r-- | src/console/uart8250_console.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/console/uart8250_console.c b/src/console/uart8250_console.c index 03db400319..4799ca66e5 100644 --- a/src/console/uart8250_console.c +++ b/src/console/uart8250_console.c @@ -23,20 +23,7 @@ static void ttyS0_init(void) { - static const unsigned char div[8] = { 1, 2, 3, 6, 12, 24, 48, 96 }; - int b_index = 0; - /* TODO the divisor calculation is hard coded to standard UARTs. Some - * UARTs won't work with these values. This should be a property of the - * UART used, worst case a Kconfig variable. For now live with hard - * codes as the only devices that might be different are the iWave - * iRainbowG6 and the OXPCIe952 card (and the latter is memory mapped) - */ - unsigned int divisor = 115200 / CONFIG_TTYS0_BAUD; - - if (get_option(&b_index, "baud_rate") == 0) { - divisor = div[b_index]; - } - uart8250_init(CONFIG_TTYS0_BASE, divisor); + uart_init(); } static void ttyS0_tx_byte(unsigned char data) |