Tegra194: introduce system reset
This patch introduces the flexibility to reset the platform via
the SMC_PSCI_SYSTEM_RESET function ID.
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: I315315f1998d9b9d8f237ac05625328175880922
diff --git a/plat/nvidia/tegra194/reset.c b/plat/nvidia/tegra194/reset.c
new file mode 100644
index 0000000..2112be4
--- /dev/null
+++ b/plat/nvidia/tegra194/reset.c
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <platform.h>
+
+#include <psci.h>
+#include <tftf.h>
+
+void tftf_plat_reset(void)
+{
+ smc_args reset_args = { SMC_PSCI_SYSTEM_RESET };
+
+ (void)tftf_smc(&reset_args);
+ bug_unreachable();
+}