ARM: tegra11: clock: Set wait count after EMC clock change
Alex Frid [Sat, 22 Jun 2013 07:29:23 +0000 (00:29 -0700)]
Unconditionally update EMC_ZCAL_WAIT_CNT after EMC clock change.

Bug 1312928

Change-Id: I35a24757ed8f2cbca73393fb0d95533491524b3f
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/241212
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

arch/arm/mach-tegra/tegra11_emc.c

index c8a007b..c5afa6a 100644 (file)
@@ -688,8 +688,7 @@ static noinline void emc_set_clock(const struct tegra11_emc_table *next_timing,
        }
 
        /* 17. set zcal wait count */
-       if (zcal_long)
-               emc_writel(next_timing->emc_zcal_cnt_long, EMC_ZCAL_WAIT_CNT);
+       emc_writel(next_timing->emc_zcal_cnt_long, EMC_ZCAL_WAIT_CNT);
 
        /* 18. update restored timing */
        udelay(2);