- Fix race condition in option_table.h generation by moving the include
[coreboot.git] / src / pc80 / serial.c
index f7e4578221b8207046548b6a1a41a920d816a9cf..5e2538e34b35a4eff142bc646da38bc56a93d16c 100644 (file)
@@ -1,6 +1,9 @@
 #include <lib.h> /* Prototypes */
 #include <arch/io.h>
 #include "pc80/mc146818rtc.h"
+#if CONFIG_USE_OPTION_TABLE
+#include "option_table.h"
+#endif
 
 /* Base Address */
 #ifndef CONFIG_TTYS0_BASE
@@ -28,7 +31,7 @@
 #define UART_LCS       CONFIG_TTYS0_LCS
 
 
-#if CONFIG_USE_PRINTK_IN_CAR == 0
+#if CONFIG_CACHE_AS_RAM == 0
 
 /* Data */
 #define UART_RBR 0x00
@@ -97,7 +100,7 @@ void uart_init(void)
 }
 
 #else
-/* CONFIG_USE_PRINTK_IN_CAR == 1 */
+/* CONFIG_CACHE_AS_RAM == 1 */
 
 extern void uart8250_init(unsigned base_port, unsigned divisor, unsigned lcs);
 void uart_init(void)