Extend coreboot table entry for serial ports
[coreboot.git] / payloads / libpayload / arch / i386 / coreboot.c
index e3c944d443d85ee8b3c3b823e5c630bc168b68f4..bdef4e85d3de9866651233e99d26e05cb5893d7b 100644 (file)
@@ -77,7 +77,9 @@ static void cb_parse_memory(unsigned char *ptr, struct sysinfo_t *info)
 static void cb_parse_serial(unsigned char *ptr, struct sysinfo_t *info)
 {
        struct cb_serial *ser = (struct cb_serial *)ptr;
-       info->ser_ioport = ser->ioport;
+       if (ser->type != CB_SERIAL_TYPE_IO_MAPPED)
+               return;
+       info->ser_ioport = ser->baseaddr;
 }
 
 #ifdef CONFIG_NVRAM