Tegra186: implement prepare_system_reset handler
authorVarun Wadekar <vwadekar@nvidia.com>
Thu, 7 Jan 2016 22:36:12 +0000 (14:36 -0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 20 Mar 2017 16:13:11 +0000 (09:13 -0700)
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>
plat/nvidia/tegra/soc/t186/plat_psci_handlers.c

index 02119d3597c43905a28fdafbf5cda1133f50993c..d1e469dead2bc24e2b4e81008fc3bb5283da1555 100644 (file)
@@ -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;
+}