From 9091e789427ac1934d567196257b974ff8148176 Mon Sep 17 00:00:00 2001 From: Vignesh Radhakrishnan Date: Wed, 14 Jun 2017 09:59:27 -0700 Subject: [PATCH] Tegra194: implement system shutdown/reset handlers This patch implements the PSCI system shutdown and reset handlers, that in turn issue the MCE commands. Change-Id: Ia9c831674d7be615a6e336abca42f397e4455572 Signed-off-by: Vignesh Radhakrishnan --- plat/nvidia/tegra/soc/t194/plat_psci_handlers.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plat/nvidia/tegra/soc/t194/plat_psci_handlers.c b/plat/nvidia/tegra/soc/t194/plat_psci_handlers.c index 352def13d..462087ebd 100644 --- a/plat/nvidia/tegra/soc/t194/plat_psci_handlers.c +++ b/plat/nvidia/tegra/soc/t194/plat_psci_handlers.c @@ -452,8 +452,7 @@ int32_t tegra_soc_pwr_domain_off(const psci_power_state_t *target_state) __dead2 void tegra_soc_prepare_system_off(void) { /* System power off */ - - /* SC8 */ + mce_system_shutdown(); wfi(); @@ -465,5 +464,8 @@ __dead2 void tegra_soc_prepare_system_off(void) int32_t tegra_soc_prepare_system_reset(void) { + /* System reboot */ + mce_system_reboot(); + return PSCI_E_SUCCESS; } -- GitLab