ARM: tegra12: clock: Fix cbus clients overclock warnings
Hoang Pham [Tue, 23 Apr 2013 01:26:16 +0000 (18:26 -0700)]
Bug 1160031

Change-Id: I1a74f82e3d3f78b47e4e30c090a1e0b8c8654cdd
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/220284
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>

arch/arm/mach-tegra/tegra12_clocks.c

index 9109d8b..7f0ab6e 100644 (file)
@@ -2352,9 +2352,9 @@ static void tegra12_pllcx_clk_init(struct clk *c)
         */
        m = PLL_FIXED_MDIV(c, input_rate);
        n = m * c->u.pll.vco_min / input_rate;
-       p = pllcx_p[1];
+       p = pllcx_p[2];
        val = (m << PLL_BASE_DIVM_SHIFT) | (n << PLL_BASE_DIVN_SHIFT) |
-               (1 << PLL_BASE_DIVP_SHIFT);
+               (2 << PLL_BASE_DIVP_SHIFT);
        clk_writel(val, c->reg + PLL_BASE);     /* PLL disabled */
 
        pllcx_set_defaults(c, input_rate, n);