From 0567c91b22e36eb07e7c7b8a67cbf6b41778db30 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Fri, 14 Feb 2014 10:31:38 +0200 Subject: console: Use single driver entry for UARTs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit UARTs now have unified prototypes and can use a single entry in the list of drivers for ramstage. Change-Id: I315daaf9a83cfa60f1a270146c729907a1d6d45b Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/5308 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/drivers/uart/pl011.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/drivers') diff --git a/src/drivers/uart/pl011.c b/src/drivers/uart/pl011.c index 376e95c0c8..2202de755d 100644 --- a/src/drivers/uart/pl011.c +++ b/src/drivers/uart/pl011.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */ -#include #include static void pl011_uart_tx_byte(unsigned char data) @@ -25,16 +24,12 @@ static void pl011_uart_tx_byte(unsigned char data) } #if !defined(__PRE_RAM__) - -static const struct console_driver pl011_uart_console __console = { - .tx_byte = pl011_uart_tx_byte, -}; - uint32_t uartmem_getbaseaddr(void) { return CONFIG_CONSOLE_SERIAL_UART_ADDRESS; } -#else +#endif + void uart_init(void) { } @@ -47,4 +42,8 @@ void uart_tx_byte(unsigned char data) void uart_tx_flush(void) { } -#endif + +unsigned char uart_rx_byte(void) +{ + return 0; +} -- cgit v1.2.3