Extend coreboot table entry for serial ports
[coreboot.git] / payloads / libpayload / arch / powerpc / coreboot.c
index ee1842c82f8c15f7c20e15f9c707df8d59e86e48..7da87ed2f2f25cf9c37e9d3f1e2ad3dea739173f 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