summaryrefslogtreecommitdiff
path: root/src/include/uart.h
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2013-02-06 21:51:15 +0800
committerDavid Hendricks <dhendrix@chromium.org>2013-02-08 02:02:26 +0100
commit580fa2bf316d4796e5ed76cbbd3e454479fb0688 (patch)
treef98a396d81d8474377bcb4837180af869dc06e1a /src/include/uart.h
parentf7fcb2056f2ddf151517366a4caf2b6c52b0d920 (diff)
console: Only print romstage messages with EARLY_CONSOLE enabled.
Revise console source file dependency (especially for EARLY_CONSOLE) and interpret printk/console_init according to EARLY_CONSOLE setting (no-ops if EARLY_CONSOLE is not defined). Verified to boot on x86/qemu and armv7/snow. Disabling EARLY_CONSOLE correctly stops romstage messages on x86/qemu (armv7/snow needs more changes to work). Change-Id: Idbbd3a26bc1135c9d3ae282aad486961fb60e0ea Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: http://review.coreboot.org/2300 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'src/include/uart.h')
-rw-r--r--src/include/uart.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/uart.h b/src/include/uart.h
index 2a72575871..e42449653f 100644
--- a/src/include/uart.h
+++ b/src/include/uart.h
@@ -26,7 +26,7 @@
#ifndef UART_H
#define UART_H
-#if CONFIG_CONSOLE_SERIAL8250
+#if CONFIG_CONSOLE_SERIAL8250 || CONFIG_CONSOLE_SERIAL8250MEM
#include <uart8250.h>
#endif
@@ -34,7 +34,7 @@
#include <cpu/samsung/exynos5-common/uart.h>
#endif
-#ifndef __ROMCC__
+#if !defined(__ROMCC__) && CONFIG_CONSOLE_SERIAL_UART
unsigned char uart_rx_byte(void);
void uart_tx_byte(unsigned char data);
void uart_tx_flush(void);