summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/elkhartlake/pmc.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-07-05 11:59:54 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2023-07-12 09:31:17 +0000
commit0a60d1095436d4b53e660d9ea0ded48b699887d1 (patch)
tree4b42a7d0b1a30c9088862d0b52a7de32419f625c /src/soc/intel/elkhartlake/pmc.c
parentd5e70b2131746a0d398dc49695f363073e9202fc (diff)
downloadcoreboot-0a60d1095436d4b53e660d9ea0ded48b699887d1.tar.gz
coreboot-0a60d1095436d4b53e660d9ea0ded48b699887d1.tar.bz2
coreboot-0a60d1095436d4b53e660d9ea0ded48b699887d1.zip
soc/intel/*/pmc.c: Use newer function for resource declarations
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: I852d6daebdcb8461c18e7c0eaf1c54ad7c59c0c1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76287 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Diffstat (limited to 'src/soc/intel/elkhartlake/pmc.c')
-rw-r--r--src/soc/intel/elkhartlake/pmc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/soc/intel/elkhartlake/pmc.c b/src/soc/intel/elkhartlake/pmc.c
index 27d00d7ffdc5..e3e4ec05172b 100644
--- a/src/soc/intel/elkhartlake/pmc.c
+++ b/src/soc/intel/elkhartlake/pmc.c
@@ -71,8 +71,7 @@ static void soc_pmc_read_resources(struct device *dev)
{
struct resource *res;
- mmio_resource_kb(dev, PWRMBASE, PCH_PWRM_BASE_ADDRESS / KiB,
- PCH_PWRM_BASE_SIZE / KiB);
+ mmio_range(dev, PWRMBASE, PCH_PWRM_BASE_ADDRESS, PCH_PWRM_BASE_SIZE);
res = new_resource(dev, 1);
res->base = (resource_t)ACPI_BASE_ADDRESS;