Detect whether the OXPCIE card is really present while in the ROM stage.
[coreboot.git] / src / arch / x86 / lib / romstage_console.c
index 0f2272709bc14445ac9373158795ee079dfbfcb1..25eda9b22e94c7c1f8088fddb95646ba309cb4c0 100644 (file)
@@ -35,7 +35,10 @@ static void console_tx_byte(unsigned char byte)
                console_tx_byte('\r');
 
 #if CONFIG_CONSOLE_SERIAL8250MEM
-       uart8250_mem_tx_byte(CONFIG_OXFORD_OXPCIE_BASE_ADDRESS + 0x1000, byte);
+       if (oxford_oxpcie_present) {
+               uart8250_mem_tx_byte(
+                       CONFIG_OXFORD_OXPCIE_BASE_ADDRESS + 0x1000, byte);
+       }
 #endif
 #if CONFIG_CONSOLE_SERIAL8250
        uart8250_tx_byte(CONFIG_TTYS0_BASE, byte);