From fdc1b541aeeac2d6f5d93cfc514fa0599da1a47d Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Wed, 5 Jul 2023 12:08:32 +0200 Subject: soc/amd/common: Use newer function for resource declarations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Arthur Heymans Change-Id: Iad8b7c705d5053700850065f90314444904b5b54 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76289 Reviewed-by: Felix Held Reviewed-by: Kyösti Mälkki Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier --- src/soc/amd/common/block/emmc/emmc.c | 2 +- src/soc/amd/common/block/i2c/i2c.c | 2 +- src/soc/amd/common/block/uart/uart.c | 2 +- 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 = { -- cgit v1.2.3