Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/76004?usp=email )
Change subject: mb/qemu-aarch64: Move probing dram to read_resources ......................................................................
mb/qemu-aarch64: Move probing dram to read_resources
Signed-off-by: Arthur Heymans arthur@aheymans.xyz Change-Id: Iaaee41aec7806287ef1881372ec8ec47a4cd57d9 --- M src/mainboard/emulation/qemu-aarch64/mainboard.c 1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/76004/1
diff --git a/src/mainboard/emulation/qemu-aarch64/mainboard.c b/src/mainboard/emulation/qemu-aarch64/mainboard.c index 09b983f..4e00b74 100644 --- a/src/mainboard/emulation/qemu-aarch64/mainboard.c +++ b/src/mainboard/emulation/qemu-aarch64/mainboard.c @@ -13,8 +13,6 @@
static void mainboard_enable(struct device *dev) { - int ram_size_mb = probe_ramsize((uintptr_t)_dram, CONFIG_DRAM_SIZE_MB); - ram_resource_kb(dev, 0, (uintptr_t)_dram / KiB, ram_size_mb * KiB); }
struct chip_operations mainboard_ops = { @@ -44,6 +42,9 @@ res->flags = IORESOURCE_MEM | IORESOURCE_ASSIGNED;
mmio_range(dev, index++, VIRT_PCIE_ECAM_BASE, VIRT_PCIE_ECAM_SIZE); + + int ram_size_mb = probe_ramsize((uintptr_t)_dram, CONFIG_DRAM_SIZE_MB); + ram_resource_kb(dev, index++, (uintptr_t)_dram / KiB, ram_size_mb * KiB); }
struct device_operations qemu_aarch64_pci_domain_ops = {