summaryrefslogtreecommitdiff
path: root/src/soc/amd
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/common/block/emmc/emmc.c2
-rw-r--r--src/soc/amd/common/block/i2c/i2c.c2
-rw-r--r--src/soc/amd/common/block/uart/uart.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/amd/common/block/emmc/emmc.c b/src/soc/amd/common/block/emmc/emmc.c
index ee612e4110..a068031a4f 100644
--- a/src/soc/amd/common/block/emmc/emmc.c
+++ b/src/soc/amd/common/block/emmc/emmc.c
@@ -6,7 +6,7 @@
static void emmc_read_resources(struct device *dev)
{
- mmio_resource_kb(dev, 0, dev->path.mmio.addr / KiB, 4);
+ mmio_range(dev, 0, dev->path.mmio.addr, 4 * KiB);
}
static void emmc_enable(struct device *dev)
diff --git a/src/soc/amd/common/block/i2c/i2c.c b/src/soc/amd/common/block/i2c/i2c.c
index 617b8b7e10..88af20e972 100644
--- a/src/soc/amd/common/block/i2c/i2c.c
+++ b/src/soc/amd/common/block/i2c/i2c.c
@@ -121,7 +121,7 @@ void i2c_soc_init(void)
static void i2c_read_resources(struct device *dev)
{
- mmio_resource_kb(dev, 0, dev->path.mmio.addr / KiB, 4);
+ mmio_range(dev, 0, dev->path.mmio.addr, 4 * KiB);
}
struct device_operations soc_amd_i2c_mmio_ops = {
diff --git a/src/soc/amd/common/block/uart/uart.c b/src/soc/amd/common/block/uart/uart.c
index 125e780e63..96b9883b8c 100644
--- a/src/soc/amd/common/block/uart/uart.c
+++ b/src/soc/amd/common/block/uart/uart.c
@@ -98,7 +98,7 @@ static void uart_enable(struct device *dev)
static void uart_read_resources(struct device *dev)
{
- mmio_resource_kb(dev, 0, dev->path.mmio.addr / KiB, 4);
+ mmio_range(dev, 0, dev->path.mmio.addr, 4 * KiB);
}
struct device_operations amd_uart_mmio_ops = {