arm: support reboot / poweroff for qemu virt arm

Signed-off-by: Shanmin Zhang <zhangshanmin@xiaomi.com>
This commit is contained in:
Shanmin Zhang
2023-08-14 11:55:38 +08:00
committed by Xiang Xiao
parent 9f10ddc9b0
commit b9fb9bea1d
11 changed files with 503 additions and 0 deletions
+4
View File
@@ -51,6 +51,10 @@ void arm_boot(void)
qemu_setupmappings();
#if defined(CONFIG_ARCH_HAVE_PSCI)
arm_psci_init("hvc");
#endif
#ifdef CONFIG_DEVICE_TREE
fdt_register((FAR const char *)0x40000000);
#endif