This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 3a08c0a1e6678705171274965ad28368fe637a3f Author: liaoao <[email protected]> AuthorDate: Thu Aug 17 18:30:59 2023 +0800 qemu:fdt:add device tree support for goldfish arm/arm64 Signed-off-by: liaoao <[email protected]> --- 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 <nuttx/fdt.h> +#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
