aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/uart/uart8250mem.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/uart8250mem.c
parentf9fb0d9bf3944e643e76ea9336565e28cef30547 (diff)
downloadcoreboot-8517f94bfd89175b47f2bbd004fe8fd0f6183528.tar.gz
coreboot-8517f94bfd89175b47f2bbd004fe8fd0f6183528.tar.xz
coreboot-8517f94bfd89175b47f2bbd004fe8fd0f6183528.zip
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/uart8250mem.c')
-rw-r--r--src/drivers/uart/uart8250mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/uart/uart8250mem.c b/src/drivers/uart/uart8250mem.c
index 5fbbeec66..cb7070012 100644
--- a/src/drivers/uart/uart8250mem.c
+++ b/src/drivers/uart/uart8250mem.c
@@ -36,12 +36,12 @@
static uint8_t uart8250_read(void *base, uint8_t reg)
{
- return read8((uintptr_t) (base + reg));
+ return read8(base + reg);
}
static void uart8250_write(void *base, uint8_t reg, uint8_t data)
{
- write8((uintptr_t) (base + reg), data);
+ write8(base + reg, data);
}
static int uart8250_mem_can_tx_byte(void *base)