summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coreboot.org>2011-01-05 02:40:53 +0000
committerStefan Reinauer <stepan@openbios.org>2011-01-05 02:40:53 +0000
commitda712f3f45bf27dc7326887c2d38cc7599f7448a (patch)
tree4dd6e92b3eaa5350a9e210cebd31609829c665f6 /src
parent1b342263f0d8546b4eb9ba235bd3cb6524c9ffec (diff)
downloadcoreboot-da712f3f45bf27dc7326887c2d38cc7599f7448a.tar.xz
uart_init is only used in romstage.
Signed-off-by: Stefan Reinauer <stepan@coreboot.org> Acked-by: Stefan Reinauer <stepan@coreboot.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6245 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r--src/lib/uart8250.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/uart8250.c b/src/lib/uart8250.c
index fbdf4ac843..28989b24ee 100644
--- a/src/lib/uart8250.c
+++ b/src/lib/uart8250.c
@@ -103,6 +103,7 @@ void init_uart8250(unsigned base_port, struct uart8250 *uart)
}
#endif
+#ifdef __PRE_RAM__
void uart_init(void)
{
#if CONFIG_USE_OPTION_TABLE
@@ -117,4 +118,4 @@ void uart_init(void)
uart8250_init(CONFIG_TTYS0_BASE, CONFIG_TTYS0_DIV);
#endif
}
-
+#endif