platform: qemu/virt: Fix up DT for reserved memory
authorBin Meng <bmeng.cn@gmail.com>
Tue, 17 Mar 2020 14:59:45 +0000 (07:59 -0700)
committerAnup Patel <anup@brainfault.org>
Wed, 18 Mar 2020 04:24:07 +0000 (09:54 +0530)
This calls fdt_reserved_memory_fixup() helper in the platform's
final_init() routine.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
platform/qemu/virt/platform.c

index c103e85..c2e3b70 100644 (file)
@@ -49,6 +49,8 @@ static int virt_final_init(bool cold_boot)
        fdt = sbi_scratch_thishart_arg1_ptr();
        fdt_plic_fixup(fdt, "riscv,plic0");
 
+       fdt_reserved_memory_fixup(fdt);
+
        return 0;
 }