diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2023-07-05 12:08:32 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2023-07-12 10:15:26 +0000 |
commit | fdc1b541aeeac2d6f5d93cfc514fa0599da1a47d (patch) | |
tree | c6936110f85cd3656e450acfbf831e16bb316498 /src/soc/amd/common | |
parent | 6df8ba45e04724cd8cbcb556df43a61ad271ab6f (diff) |
soc/amd/common: Use newer function for resource declarations
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: Iad8b7c705d5053700850065f90314444904b5b54
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76289
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Diffstat (limited to 'src/soc/amd/common')
-rw-r--r-- | src/soc/amd/common/block/emmc/emmc.c | 2 | ||||
-rw-r--r-- | src/soc/amd/common/block/i2c/i2c.c | 2 | ||||
-rw-r--r-- | 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 = { |