From 3a08c0a1e6678705171274965ad28368fe637a3f Mon Sep 17 00:00:00 2001 From: liaoao Date: Thu, 17 Aug 2023 18:30:59 +0800 Subject: [PATCH] qemu:fdt:add device tree support for goldfish arm/arm64 Signed-off-by: liaoao --- arch/arm64/src/goldfish/goldfish_boot.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/src/goldfish/goldfish_boot.c b/arch/arm64/src/goldfish/goldfish_boot.c index dc6066f435..bc9ce37ae2 100644 --- a/arch/arm64/src/goldfish/goldfish_boot.c +++ b/arch/arm64/src/goldfish/goldfish_boot.c @@ -45,6 +45,10 @@ #include "goldfish_boot.h" #include "goldfish_serial.h" +#ifdef CONFIG_DEVICE_TREE +# include +#endif + /**************************************************************************** * Private Data ****************************************************************************/ @@ -174,6 +178,10 @@ void arm64_chip_boot(void) arm64_mmu_init(true); +#ifdef CONFIG_DEVICE_TREE + fdt_register((const char *)0x40000000); +#endif + #ifdef CONFIG_ARCH_HAVE_PSCI arm64_psci_init("smc"); #endif