ARM: tegra: Correct fuse bits check for RAM repair
Seshendra Gadagottu [Fri, 22 Mar 2013 18:41:08 +0000 (11:41 -0700)]
If any one of spare_10 or spare_11 bits are set then
trigger RAM repair

Bug 1211371

Change-Id: I55f7b2a5d03f2d61cd7c840392241b1b92dafb37
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/212183
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

arch/arm/mach-tegra/common.c

index 177bef1..18eb177 100644 (file)
@@ -589,7 +589,7 @@ 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) & 1) {
+       if (tegra_spare_fuse(10)  | tegra_spare_fuse(11)) {
                u32 reg;
                reg = readl(FLOW_CTRL_RAM_REPAIR);
                reg &= ~FLOW_CTRL_RAM_REPAIR_BYPASS_EN;