run uart_init() from console_init, just like the other console initialization functions.
[coreboot.git] / src / console / console.c
index 3178562bb342fb8185fec001c5d22e2ebed28aac..9ec0e259a93362881ba7bfd3e34cd654245f2376 100644 (file)
 #include <arch/hlt.h>
 #include <arch/io.h>
 
+#if CONFIG_CONSOLE_SERIAL8250
+#include <uart8250.h>
+#endif
+
 #if CONFIG_CONSOLE_NE2K
 #include <console/ne2k.h>
 #endif
@@ -99,6 +103,9 @@ void console_init(void)
        enable_usbdebug(CONFIG_USBDEBUG_DEFAULT_PORT);
        early_usbdebug_init();
 #endif
+#if CONFIG_CONSOLE_SERIAL8250
+       uart_init();
+#endif
 #if CONFIG_CONSOLE_NE2K
        ne2k_init(CONFIG_CONSOLE_NE2K_IO_PORT);
 #endif