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 c8a4bdf21a
commit d63e3962bf
+8
View File
@@ -29,6 +29,10 @@
#include "goldfish_irq.h"
#include "goldfish_memorymap.h"
#ifdef CONFIG_DEVICE_TREE
# include <nuttx/fdt.h>
#endif
/****************************************************************************
* Public Functions
****************************************************************************/
@@ -47,6 +51,10 @@ void arm_boot(void)
goldfish_setupmappings();
#ifdef CONFIG_DEVICE_TREE
fdt_register((FAR const char *)0x40000000);
#endif
#ifdef USE_EARLYSERIALINIT
/* Perform early serial initialization if we are going to use the serial
* driver.