summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-07-05 11:48:01 +0200
committerFelix Held <felix-coreboot@felixheld.de>2023-07-13 14:13:26 +0000
commitd821c7267f23cc9bae20f24dbd5e61bb286d5904 (patch)
treef75c76e8d8e84097b3e20ec2dc1a565d632085d8
parenta5935c6307fd65b031adf459b6be3823d8a0c298 (diff)
soc/intel/baytrail: Use newer function for resource declarations
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: I80c8a1b58e8102ed11e22b74f30750d5a6c4eae4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76283 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/soc/intel/baytrail/lpe.c5
-rw-r--r--src/soc/intel/baytrail/northcluster.c4
2 files changed, 4 insertions, 5 deletions
diff --git a/src/soc/intel/baytrail/lpe.c b/src/soc/intel/baytrail/lpe.c
index 851f52e2a5..71a1e1f99e 100644
--- a/src/soc/intel/baytrail/lpe.c
+++ b/src/soc/intel/baytrail/lpe.c
@@ -147,9 +147,8 @@ static void lpe_read_resources(struct device *dev)
{
pci_dev_read_resources(dev);
- reserved_ram_resource_kb(dev, FIRMWARE_PCI_REG_BASE,
- FIRMWARE_PHYS_BASE >> 10,
- FIRMWARE_PHYS_LENGTH >> 10);
+ reserved_ram_range(dev, FIRMWARE_PCI_REG_BASE, FIRMWARE_PHYS_BASE,
+ FIRMWARE_PHYS_LENGTH);
}
static const struct device_operations device_ops = {
diff --git a/src/soc/intel/baytrail/northcluster.c b/src/soc/intel/baytrail/northcluster.c
index ecfc3ff503..509efbe2aa 100644
--- a/src/soc/intel/baytrail/northcluster.c
+++ b/src/soc/intel/baytrail/northcluster.c
@@ -108,8 +108,8 @@ static void nc_read_resources(struct device *dev)
* 0xa0000 - 0xbffff: legacy VGA
* 0xc0000 - 0xfffff: RAM
*/
- mmio_resource_kb(dev, index++, (0xa0000 >> 10), (0xc0000 - 0xa0000) >> 10);
- reserved_ram_resource_kb(dev, index++, (0xc0000 >> 10), (0x100000 - 0xc0000) >> 10);
+ mmio_from_to(dev, index++, 0xa0000, 0xc0000);
+ reserved_ram_from_to(dev, index++, 0xc0000, 1 * MiB);
}
static void nc_generate_ssdt(const struct device *dev)