mb/emulation/*: Use newer function for resource declarations

Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: Idd623e99ee20ad94e493c8560cfdac9f7baaf890
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76281
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Arthur Heymans 2023-07-05 11:44:45 +02:00 committed by Kyösti Mälkki
parent 0a60d10954
commit 6df8ba45e0
4 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ static void mainboard_enable(struct device *dev)
{
if (!dev)
die("No dev0; die\n");
ram_resource_kb(dev, 0, 0, (unsigned long)cbmem_top() / KiB);
ram_range(dev, 0, 0, (unsigned long)cbmem_top());
}
struct chip_operations mainboard_ops = {

View File

@ -14,7 +14,7 @@ static void mainboard_enable(struct device *dev)
}
dram_mb_detected = probe_ramsize((uintptr_t)_dram, CONFIG_DRAM_SIZE_MB);
ram_resource_kb(dev, 0, (uintptr_t)_dram / KiB, dram_mb_detected * MiB / KiB);
ram_range(dev, 0, (uintptr_t)_dram, dram_mb_detected * MiB);
}
struct chip_operations mainboard_ops = {

View File

@ -17,7 +17,7 @@ static void mainboard_enable(struct device *dev)
die("No dev0; die\n");
}
ram_resource_kb(dev, 0, 0x80000000/KiB, ram_size/KiB);
ram_range(dev, 0, 0x80000000, ram_size);
}
struct chip_operations mainboard_ops = {

View File

@ -6,7 +6,7 @@
static void mainboard_enable(struct device *dev)
{
ram_resource_kb(dev, 0, (uintptr_t)_dram/KiB, sdram_size_mb()*KiB);
ram_range(dev, 0, (uintptr_t)_dram, sdram_size_mb());
}
struct chip_operations mainboard_ops = {