ARM: tegra: always enable RAM repair for all chips
Bo Yan [Fri, 13 Sep 2013 06:21:56 +0000 (23:21 -0700)]
RAM repair sequence must be done even if no RAM is actually repaired.

bug 1366617

Change-Id: Ibaabf1355310aeea01b5a9e247ce99625dc31a3e
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/323997
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

arch/arm/mach-tegra/common.c

index 0048ca3..916693f 100644 (file)
@@ -588,12 +588,10 @@ static void __init tegra_perf_init(void)
 #ifdef CONFIG_ARCH_TEGRA_11x_SOC
 static void __init tegra_ramrepair_init(void)
 {
-       if (tegra_spare_fuse(10)  | tegra_spare_fuse(11)) {
-               u32 reg;
-               reg = readl(FLOW_CTRL_RAM_REPAIR);
-               reg &= ~FLOW_CTRL_RAM_REPAIR_BYPASS_EN;
-               writel(reg, FLOW_CTRL_RAM_REPAIR);
-       }
+       u32 reg;
+       reg = readl(FLOW_CTRL_RAM_REPAIR);
+       reg &= ~FLOW_CTRL_RAM_REPAIR_BYPASS_EN;
+       writel(reg, FLOW_CTRL_RAM_REPAIR);
 }
 #endif