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 <vigneshr@nvidia.com>
diff --git a/plat/nvidia/tegra/soc/t194/plat_psci_handlers.c b/plat/nvidia/tegra/soc/t194/plat_psci_handlers.c
index 352def1..462087e 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 @@
__dead2 void tegra_soc_prepare_system_off(void)
{
/* System power off */
-
- /* SC8 */
+ mce_system_shutdown();
wfi();
@@ -465,5 +464,8 @@
int32_t tegra_soc_prepare_system_reset(void)
{
+ /* System reboot */
+ mce_system_reboot();
+
return PSCI_E_SUCCESS;
}