Add constants for fast path resume copying
[coreboot.git] / src / lib / uart8250mem.c
index 918308ecdfe0e50233a0c8e3a66f38c401fe50e0..a38623edbcb7708d452688f334706cf50397587e 100644 (file)
@@ -51,7 +51,10 @@ void uart8250_mem_tx_byte(unsigned base_port, unsigned char data)
 {
        uart8250_mem_wait_to_tx_byte(base_port);
        write8(base_port + UART_TBR, data);
-       /* Make certain the data clears the FIFOs */
+}
+
+void uart8250_mem_tx_flush(unsigned base_port)
+{
        uart8250_mem_wait_until_sent(base_port);
 }
 
@@ -114,10 +117,12 @@ u32 uart_mem_init(void)
 
 #if defined(MORE_TESTING) && !defined(__SMM__) && !defined(__PRE_RAM__)
        device_t dev = dev_find_device(0x1415, 0xc158, NULL);
+       if (!dev)
+               dev = dev_find_device(0x1415, 0xc11b, NULL);
 
        if (dev) {
                struct resource *res = find_resource(dev, 0x10);
-       
+
                if (res) {
                        uart_bar = res->base + 0x1000; // for 1st UART
                        // uart_bar = res->base + 0x2000; // for 2nd UART
@@ -128,7 +133,7 @@ u32 uart_mem_init(void)
 #endif
        uart_bar = CONFIG_OXFORD_OXPCIE_BASE_ADDRESS + 0x1000; // 1st UART
        // uart_bar = CONFIG_OXFORD_OXPCIE_BASE_ADDRESS + 0x2000; // 2nd UART
-       
+
        div = 4000000 / uart_baud;
 #endif