summaryrefslogtreecommitdiff
path: root/src/drivers/uart/oxpcie.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2015-03-12 11:33:14 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2015-03-14 00:10:52 +0100
commit8517f94bfd89175b47f2bbd004fe8fd0f6183528 (patch)
treeff6fbb974f48896319ea7356a7f357caff365671 /src/drivers/uart/oxpcie.c
parentf9fb0d9bf3944e643e76ea9336565e28cef30547 (diff)
OxPCIe952: Fix read8/write8 argument
This was missed in commit bde6d309 as the driver is not enabled in any configuration by default. Change-Id: I3d886531f5bcf013fc22ee0a1e8fa250d7c4c1a4 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/8660 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Diffstat (limited to 'src/drivers/uart/oxpcie.c')
-rw-r--r--src/drivers/uart/oxpcie.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/uart/oxpcie.c b/src/drivers/uart/oxpcie.c
index 76119d2702..d49170d5d7 100644
--- a/src/drivers/uart/oxpcie.c
+++ b/src/drivers/uart/oxpcie.c
@@ -34,11 +34,12 @@ static void oxford_oxpcie_enable(device_t dev)
printk(BIOS_WARNING, "OXPCIe952: No UART resource found.\n");
return;
}
+ void *bar0 = res2mmio(res, 0, 0);
printk(BIOS_DEBUG, "OXPCIe952: Class=%x Revision ID=%x\n",
- (read32(res->base) >> 8), (read32(res->base) & 0xff));
+ (read32(bar0) >> 8), (read32(bar0) & 0xff));
printk(BIOS_DEBUG, "OXPCIe952: %d UARTs detected.\n",
- (read32(res->base + 4) & 3));
+ (read32(bar0 + 4) & 3));
printk(BIOS_DEBUG, "OXPCIe952: UART BAR: 0x%x\n", (u32)res->base);
}