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>
This commit is contained in:
parent
1d7541feeb
commit
4770749edc
7 changed files with 47 additions and 44 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue