console: Use single driver entry for UARTs
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 <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5308 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <console/console.h>
|
||||
#include <console/uart.h>
|
||||
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user