diff --git a/boards/arm/qemu/qemu-armv7a/src/qemu_boardinit.c b/boards/arm/qemu/qemu-armv7a/src/qemu_boardinit.c index b8d6872e30..4d0cc8efca 100644 --- a/boards/arm/qemu/qemu-armv7a/src/qemu_boardinit.c +++ b/boards/arm/qemu/qemu-armv7a/src/qemu_boardinit.c @@ -24,6 +24,7 @@ * Included Files ****************************************************************************/ +#include #include #include #include @@ -113,3 +114,13 @@ void board_late_initialize(void) qemu_bringup(); } #endif /* CONFIG_BOARD_LATE_INITIALIZE */ + +#if defined(CONFIG_BOARDCTL_POWEROFF) && defined(CONFIG_ARM_PSCI) +int board_power_off(int status) +{ + UNUSED(status); + + up_systempoweroff(); + return 0; +} +#endif \ No newline at end of file