arm: tegra: Disable system reset

Temporarily disable the ability of the OS to reset the target.

Original-Change-Id: I12b3b7b1d66061bb17dcd9fabd4fd79395c37880
Reviewed-on: http://git-master/r/17464
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Change-Id: I36b7471965378a342d50369700ab5d439f80cf9d

Rebase-Id: Re38709f60b8082cd05b77a13c8c9012d8a6772b0
diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c
index a147863..1fe12d7d 100644
--- a/arch/arm/mach-tegra/common.c
+++ b/arch/arm/mach-tegra/common.c
@@ -94,9 +94,14 @@
 
 void (*arch_reset)(char mode, const char *cmd) = tegra_assert_system_reset;
 
+#define NEVER_RESET 1
+
 void tegra_assert_system_reset(char mode, const char *cmd)
 {
-#ifndef CONFIG_TEGRA_FPGA_PLATFORM
+#if defined(CONFIG_TEGRA_FPGA_PLATFORM) || NEVER_RESET
+	printk("tegra_assert_system_reset() call attempted on FPGA target platform.....");
+	do { } while (1);
+#else
 	void __iomem *reset = IO_ADDRESS(TEGRA_PMC_BASE + 0x00);
 	u32 reg;
 
@@ -104,9 +109,6 @@
 	reg = readl_relaxed(reset);
 	reg |= 0x10;
 	writel_relaxed(reg, reset);
-#else
-	printk("tegra_assert_system_reset() call attempted on FPGA target platform.....");
-	do { } while (1);
 #endif
 }