mirror of
https://github.com/apache/nuttx.git
synced 2026-10-12 00:30:23 +00:00
qemu:fdt:add device tree support for goldfish arm/arm64
Signed-off-by: liaoao <liaoao@xiaomi.com>
This commit is contained in:
parent
c8a4bdf21a
commit
d63e3962bf
1 changed files with 8 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue