summaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2014-02-15 07:53:18 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-03-04 15:27:53 +0100
commit4770749edca1e54c9a04b48ca6909d786139fa1b (patch)
tree05ef5eeba7586e3ba28f24eca77b349b2305580a /src/console
parent1d7541feeba372ec3d1d441442238e1c65972bd7 (diff)
downloadcoreboot-4770749edca1e54c9a04b48ca6909d786139fa1b.tar.xz
uart8250io: Unify calls with generic UART
Change-Id: I6d56648e56f2177e1d5332497321e718df18300c Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5234 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/console')
-rw-r--r--src/console/uart8250_console.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/console/uart8250_console.c b/src/console/uart8250_console.c
index 86f1401d8c..52f59f643a 100644
--- a/src/console/uart8250_console.c
+++ b/src/console/uart8250_console.c
@@ -19,7 +19,6 @@
#include <console/console.h>
#include <console/uart.h>
-#include <uart8250.h>
static void ttyS0_init(void)
{
@@ -28,22 +27,22 @@ static void ttyS0_init(void)
static void ttyS0_tx_byte(unsigned char data)
{
- uart8250_tx_byte(CONFIG_TTYS0_BASE, data);
+ uart_tx_byte(data);
}
static void ttyS0_tx_flush(void)
{
- uart8250_tx_flush(CONFIG_TTYS0_BASE);
+ uart_tx_flush();
}
static unsigned char ttyS0_rx_byte(void)
{
- return uart8250_rx_byte(CONFIG_TTYS0_BASE);
+ return uart_rx_byte();
}
static int ttyS0_tst_byte(void)
{
- return uart8250_can_rx_byte(CONFIG_TTYS0_BASE);
+ return uart_can_rx_byte();
}
static const struct console_driver uart8250_console __console = {