diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2023-07-05 11:58:20 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2023-07-12 09:30:47 +0000 |
commit | d5e70b2131746a0d398dc49695f363073e9202fc (patch) | |
tree | ceba9ab5344118f8fc9b16c475fce7900e8f4a34 /src | |
parent | 899acf19bfc2533df215b73b8ae99aff8a722745 (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')
-rw-r--r-- | src/soc/intel/common/block/fast_spi/fast_spi.c | 6 | ||||
-rw-r--r-- | src/soc/intel/common/block/p2sb/ioe_p2sb.c | 2 | ||||
-rw-r--r-- | src/soc/intel/common/block/p2sb/p2sb.c | 2 | ||||
-rw-r--r-- | src/soc/intel/common/block/systemagent/systemagent.c | 4 | ||||
-rw-r--r-- | src/soc/intel/common/block/tracehub/tracehub.c | 4 |
5 files changed, 9 insertions, 9 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); } } diff --git a/src/soc/intel/common/block/p2sb/ioe_p2sb.c b/src/soc/intel/common/block/p2sb/ioe_p2sb.c index e806417014..41b815bad4 100644 --- a/src/soc/intel/common/block/p2sb/ioe_p2sb.c +++ b/src/soc/intel/common/block/p2sb/ioe_p2sb.c @@ -28,7 +28,7 @@ void ioe_p2sb_enable_bar(void) static void read_resources(struct device *dev) { - mmio_resource_kb(dev, 0, IOE_P2SB_BAR / KiB, IOE_P2SB_SIZE / KiB); + mmio_range(dev, 0, IOE_P2SB_BAR, IOE_P2SB_SIZE); } struct device_operations device_ops = { diff --git a/src/soc/intel/common/block/p2sb/p2sb.c b/src/soc/intel/common/block/p2sb/p2sb.c index c6333af13c..157ac3aee4 100644 --- a/src/soc/intel/common/block/p2sb/p2sb.c +++ b/src/soc/intel/common/block/p2sb/p2sb.c @@ -128,7 +128,7 @@ static void read_resources(struct device *dev) * The following code makes sure that it doesn't change if the device * is visible and the resource allocator is being run. */ - mmio_resource_kb(dev, PCI_BASE_ADDRESS_0, P2SB_BAR / KiB, P2SB_SIZE / KiB); + mmio_range(dev, PCI_BASE_ADDRESS_0, P2SB_BAR, P2SB_SIZE); } const struct device_operations p2sb_ops = { diff --git a/src/soc/intel/common/block/systemagent/systemagent.c b/src/soc/intel/common/block/systemagent/systemagent.c index 174d511aa1..f569a0d684 100644 --- a/src/soc/intel/common/block/systemagent/systemagent.c +++ b/src/soc/intel/common/block/systemagent/systemagent.c @@ -109,7 +109,7 @@ void sa_add_fixed_mmio_resources(struct device *dev, int *resource_cnt, sa_fixed_resources[i].description, sa_fixed_resources[i].base, sa_fixed_resources[i].size); - mmio_resource_kb(dev, index++, base / KiB, size / KiB); + mmio_range(dev, index++, base, size); } *resource_cnt = index; @@ -240,7 +240,7 @@ static void imr_resource(struct device *dev, int idx, uint32_t base, * out of MTRRs. Memory reserved by IMRs is not usable for host * so mark it reserved. */ - reserved_ram_resource_kb(dev, idx, base_k, size_k); + reserved_ram_range(dev, idx, base_k * KiB, size_k * KiB); } /* diff --git a/src/soc/intel/common/block/tracehub/tracehub.c b/src/soc/intel/common/block/tracehub/tracehub.c index dd065d5042..4faa9ebc91 100644 --- a/src/soc/intel/common/block/tracehub/tracehub.c +++ b/src/soc/intel/common/block/tracehub/tracehub.c @@ -30,8 +30,8 @@ static void tracehub_read_resources(struct device *dev) } printk(BIOS_DEBUG, "Trace Hub HOB found: addr=0x%08llx length=0x%08llx\n", tracehub_info_hob->addr, tracehub_info_hob->length); - reserved_ram_resource_kb(dev, 0, tracehub_info_hob->addr / KiB, - tracehub_info_hob->length / KiB); + reserved_ram_range(dev, 0, tracehub_info_hob->addr, + tracehub_info_hob->length); } static struct device_operations dev_ops = { |