ARM: tegra: mc: Fix MC_RESERVED_RSV write
Alex Waterman [Thu, 21 Mar 2013 00:23:26 +0000 (17:23 -0700)]
Only overwrite the MC_RESERVED_RSV default HW reset value for
T30 platforms.

bug 1249692

Change-Id: Ib3c61eaf7bbb66b6e0f3e9136a37bdc63153ce06
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/211399
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

arch/arm/mach-tegra/mcerr.c

index 5160e21..abe53a0 100644 (file)
@@ -319,8 +319,10 @@ static int __init tegra_mcerr_init(void)
        u32 reg;
        int ret = 0;
 
-       reg = 0x0F7F1010;
+#if defined(CONFIG_ARCH_TEGRA_3x_SOC)
+       reg = 0x0f7f1010;
        writel(reg, mc + MC_RESERVED_RSV);
+#endif
 
 #if defined(CONFIG_TEGRA_MC_EARLY_ACK)
        reg = readl(mc + MC_EMEM_ARB_OVERRIDE);