qemu:fdt:add device tree support for goldfish arm/arm64

Signed-off-by: liaoao <liaoao@xiaomi.com>
This commit is contained in:
liaoao 2023-08-17 18:30:59 +08:00 committed by Xiang Xiao
parent cb3e6667e3
commit 3a08c0a1e6

View File

@ -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