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>
This commit is contained in:
Arthur Heymans 2023-07-05 11:59:54 +02:00 committed by Kyösti Mälkki
parent d5e70b2131
commit 0a60d10954
6 changed files with 6 additions and 12 deletions

View File

@ -85,8 +85,7 @@ static void soc_pmc_read_resources(struct device *dev)
struct resource *res;
/* Add the fixed MMIO resource */
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);
/* Add the fixed I/O resource */
res = new_resource(dev, 1);

View File

@ -74,8 +74,7 @@ static void soc_pmc_read_resources(struct device *dev)
struct resource *res;
/* Add the fixed MMIO resource */
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);
/* Add the fixed I/O resource */
res = new_resource(dev, 1);

View File

@ -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;

View File

@ -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;

View File

@ -80,8 +80,7 @@ static void soc_pmc_read_resources(struct device *dev)
struct resource *res;
/* Add the fixed MMIO resource */
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);
/* Add the fixed I/O resource */
res = new_resource(dev, 1);

View File

@ -84,8 +84,7 @@ static void soc_pmc_read_resources(struct device *dev)
struct resource *res;
/* Add the fixed MMIO resource */
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);
/* Add the fixed I/O resource */
res = new_resource(dev, 1);