uart: Redefine Kconfig options
Option DRIVERS_UART builds with support for UART hardware. Option CONSOLE_SERIAL enables the console output for UART. Those x86 boards that do not have serial port on SuperIO should select NO_UART_ON_SUPERIO to disable 8250 UART for the default configuration. Removes: CONSOLE_SERIAL_UART HAVE_UART_IO_MAPPED HAVE_UART_MEMORY_MAPPED Renames: CONSOLE_SERIAL8250 -> DRIVERS_UART_8250IO CONSOLE_SERIAL8250MEM -> DRIVERS_UART_8250MEM Change-Id: Id3afa05f85c0d6849746886db8b6c2ed6c846b61 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5311 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
committed by
Patrick Georgi
parent
bbf6f3d384
commit
afa7b13b93
@@ -28,7 +28,7 @@ void console_tx_byte(unsigned char byte)
|
||||
if (byte == '\n')
|
||||
console_tx_byte('\r');
|
||||
|
||||
#if CONFIG_CONSOLE_SERIAL_UART
|
||||
#if CONFIG_CONSOLE_SERIAL
|
||||
uart_tx_byte(byte);
|
||||
#endif
|
||||
#if CONFIG_CONSOLE_CBMEM && !defined(__BOOT_BLOCK__)
|
||||
@@ -38,7 +38,7 @@ void console_tx_byte(unsigned char byte)
|
||||
|
||||
static void _console_tx_flush(void)
|
||||
{
|
||||
#if CONFIG_CONSOLE_SERIAL_UART
|
||||
#if CONFIG_CONSOLE_SERIAL
|
||||
uart_tx_flush();
|
||||
#endif
|
||||
}
|
||||
|
@@ -30,7 +30,7 @@
|
||||
*/
|
||||
#define console_loglevel CONFIG_DEFAULT_CONSOLE_LOGLEVEL
|
||||
|
||||
#if CONFIG_CONSOLE_SERIAL8250
|
||||
#if CONFIG_CONSOLE_SERIAL && CONFIG_DRIVERS_UART_8250IO
|
||||
#include "drivers/uart/util.c"
|
||||
#include "drivers/uart/uart8250io.c"
|
||||
#endif
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
static void __console_tx_byte(unsigned char byte)
|
||||
{
|
||||
#if CONFIG_CONSOLE_SERIAL8250
|
||||
#if CONFIG_CONSOLE_SERIAL
|
||||
uart_tx_byte(byte);
|
||||
#endif
|
||||
#if CONFIG_CONSOLE_NE2K
|
||||
@@ -61,7 +61,7 @@ static void __console_tx_nibble(unsigned nibble)
|
||||
static void __console_tx_char(int loglevel, unsigned char byte)
|
||||
{
|
||||
if (console_loglevel >= loglevel) {
|
||||
#if CONFIG_CONSOLE_SERIAL8250
|
||||
#if CONFIG_CONSOLE_SERIAL
|
||||
uart_tx_byte(byte);
|
||||
#endif
|
||||
#if CONFIG_CONSOLE_NE2K
|
||||
|
@@ -31,10 +31,7 @@ void console_tx_byte(unsigned char byte)
|
||||
if (byte == '\n')
|
||||
console_tx_byte('\r');
|
||||
|
||||
#if CONFIG_CONSOLE_SERIAL8250MEM
|
||||
uart_tx_byte(byte);
|
||||
#endif
|
||||
#if CONFIG_CONSOLE_SERIAL8250
|
||||
#if CONFIG_CONSOLE_SERIAL
|
||||
uart_tx_byte(byte);
|
||||
#endif
|
||||
#if CONFIG_CONSOLE_USB && (CONFIG_USBDEBUG_IN_ROMSTAGE || !defined(__PRE_RAM__))
|
||||
@@ -53,10 +50,7 @@ void console_tx_byte(unsigned char byte)
|
||||
|
||||
void console_tx_flush(void)
|
||||
{
|
||||
#if CONFIG_CONSOLE_SERIAL8250MEM
|
||||
uart_tx_flush();
|
||||
#endif
|
||||
#if CONFIG_CONSOLE_SERIAL8250
|
||||
#if CONFIG_CONSOLE_SERIAL
|
||||
uart_tx_flush();
|
||||
#endif
|
||||
#if CONFIG_CONSOLE_NE2K
|
||||
|
Reference in New Issue
Block a user