summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVarun Wadekar <vwadekar@nvidia.com>2016-01-07 14:36:12 -0800
committerVarun Wadekar <vwadekar@nvidia.com>2017-03-20 09:13:11 -0700
commitb6ea86b1c3d79d37dac213ed6d6d0469e68c4b7f (patch)
tree160f5c9742afb380de7d841f770ba49ac3de9278
parent348619f2874cd4e7d4ea09a3aa238cb722bf0e0b (diff)
Tegra186: implement prepare_system_reset handler
This patch implements the 'prepare_system_reset' handler to issue the 'system reset' command to the MCE. Change-Id: I83d8d0b4167aac5963d640fe77d5754dc7ef05b1 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
-rw-r--r--plat/nvidia/tegra/soc/t186/plat_psci_handlers.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/plat/nvidia/tegra/soc/t186/plat_psci_handlers.c b/plat/nvidia/tegra/soc/t186/plat_psci_handlers.c
index 02119d35..d1e469de 100644
--- a/plat/nvidia/tegra/soc/t186/plat_psci_handlers.c
+++ b/plat/nvidia/tegra/soc/t186/plat_psci_handlers.c
@@ -114,3 +114,10 @@ __dead2 void tegra_soc_prepare_system_off(void)
{
mce_enter_ccplex_state(TEGRA_ARI_MISC_CCPLEX_SHUTDOWN_POWER_OFF);
}
+
+int tegra_soc_prepare_system_reset(void)
+{
+ mce_enter_ccplex_state(TEGRA_ARI_MISC_CCPLEX_SHUTDOWN_REBOOT);
+
+ return PSCI_E_SUCCESS;
+}