mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
qemu:fdt:add device tree support for goldfish arm/arm64
Signed-off-by: liaoao <liaoao@xiaomi.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user