diff options
-rw-r--r-- | src/soc/intel/baytrail/lpe.c | 5 | ||||
-rw-r--r-- | src/soc/intel/baytrail/northcluster.c | 4 |
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) |