Skip to content

Commit

Permalink
qemu: add devicetree support for arm64
Browse files Browse the repository at this point in the history
Signed-off-by: liaoao <[email protected]>
  • Loading branch information
leo11261 committed Aug 9, 2023
1 parent 9914999 commit ab2b4d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/arm64/src/qemu/qemu_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
#include "qemu_boot.h"
#include "qemu_serial.h"

#ifdef CONFIG_DEVICE_TREE
# include <nuttx/fdt.h>
#endif

/****************************************************************************
* Private Data
****************************************************************************/
Expand Down Expand Up @@ -167,6 +171,10 @@ void arm64_chip_boot(void)

arm64_mmu_init(true);

#ifdef CONFIG_DEVICE_TREE
fdt_register((FAR const char *)0x40000000);
#endif

#if defined(CONFIG_ARCH_CHIP_QEMU_WITH_HV)
arm64_psci_init("hvc");
#elif defined(CONFIG_SMP) || defined(CONFIG_ARCH_HAVE_PSCI)
Expand Down

0 comments on commit ab2b4d6

Please sign in to comment.