qemu:fdt:add device tree support for goldfish arm/arm64
Signed-off-by: liaoao <liaoao@xiaomi.com>
This commit is contained in:
parent
cb3e6667e3
commit
3a08c0a1e6
@ -45,6 +45,10 @@
|
|||||||
#include "goldfish_boot.h"
|
#include "goldfish_boot.h"
|
||||||
#include "goldfish_serial.h"
|
#include "goldfish_serial.h"
|
||||||
|
|
||||||
|
#ifdef CONFIG_DEVICE_TREE
|
||||||
|
# include <nuttx/fdt.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@ -174,6 +178,10 @@ void arm64_chip_boot(void)
|
|||||||
|
|
||||||
arm64_mmu_init(true);
|
arm64_mmu_init(true);
|
||||||
|
|
||||||
|
#ifdef CONFIG_DEVICE_TREE
|
||||||
|
fdt_register((const char *)0x40000000);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_HAVE_PSCI
|
#ifdef CONFIG_ARCH_HAVE_PSCI
|
||||||
arm64_psci_init("smc");
|
arm64_psci_init("smc");
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user