summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/fast_spi
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-07-05 11:58:20 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2023-07-12 09:30:47 +0000
commitd5e70b2131746a0d398dc49695f363073e9202fc (patch)
treeceba9ab5344118f8fc9b16c475fce7900e8f4a34 /src/soc/intel/common/block/fast_spi
parent899acf19bfc2533df215b73b8ae99aff8a722745 (diff)
soc/intel/common: Use newer function for resource declarations
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: If7fe96220ce5b13f5541e25935afd0c681ff40f5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76286 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/common/block/fast_spi')
-rw-r--r--src/soc/intel/common/block/fast_spi/fast_spi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/intel/common/block/fast_spi/fast_spi.c b/src/soc/intel/common/block/fast_spi/fast_spi.c
index 1f12467016..621dc963b6 100644
--- a/src/soc/intel/common/block/fast_spi/fast_spi.c
+++ b/src/soc/intel/common/block/fast_spi/fast_spi.c
@@ -545,11 +545,11 @@ static void fast_spi_read_resources(struct device *dev)
pci_dev_read_resources(dev);
/* Add SPI flash MMIO window as a reserved resource. */
- mmio_resource_kb(dev, 0, FLASH_BASE_ADDR / KiB, FLASH_MMIO_SIZE / KiB);
+ mmio_range(dev, 0, FLASH_BASE_ADDR, FLASH_MMIO_SIZE);
/* Add extended SPI flash MMIO window as reserved resource if enabled. */
if (CONFIG(FAST_SPI_SUPPORTS_EXT_BIOS_WINDOW)) {
- mmio_resource_kb(dev, 1, CONFIG_EXT_BIOS_WIN_BASE / KiB,
- CONFIG_EXT_BIOS_WIN_SIZE / KiB);
+ mmio_range(dev, 1, CONFIG_EXT_BIOS_WIN_BASE,
+ CONFIG_EXT_BIOS_WIN_SIZE);
}
}