Skip to content

Commit

Permalink
plat/qemu: support system off for secure systems
Browse files Browse the repository at this point in the history
  • Loading branch information
n-hys committed Jul 30, 2021
1 parent 7b51159 commit 0a6701d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions plat/qemu/common/qemu_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,8 @@ void qemu_pwr_domain_suspend_finish(const psci_power_state_t *target_state)

static void __dead2 qemu_system_off(void)
{
#ifdef SECURE_GPIO_BASE
ERROR("QEMU System Power off: with GPIO.\n");
gpio_set_direction(SECURE_GPIO_POWEROFF, GPIO_DIR_OUT);
gpio_set_value(SECURE_GPIO_POWEROFF, GPIO_LEVEL_HIGH);
gpio_set_value(SECURE_GPIO_POWEROFF, GPIO_LEVEL_LOW);
#else
semihosting_exit(ADP_STOPPED_APPLICATION_EXIT, 0);
ERROR("QEMU System Off: semihosting call unexpectedly returned.\n");
#endif
panic();
}

Expand Down

0 comments on commit 0a6701d

Please sign in to comment.