uart_init is only used in romstage.
authorStefan Reinauer <stepan@coreboot.org>
Wed, 5 Jan 2011 02:40:53 +0000 (02:40 +0000)
committerStefan Reinauer <stepan@openbios.org>
Wed, 5 Jan 2011 02:40:53 +0000 (02:40 +0000)
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

src/lib/uart8250.c

index fbdf4ac8436d2ddfacac0f701127345efde9ac28..28989b24ee90bd8c18eea7c3e6ed43ede62cd9b3 100644 (file)
@@ -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