msm: clock-8974: Enable GPLL0's AUX2 output for acpuclock
GPLL0's AUX2 output is used as a clock source for the CPUs and
L2. Enable it.
Change-Id: I5087584aca69cc3a447eda8de1f34428742ab492
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
diff --git a/arch/arm/mach-msm/clock-8974.c b/arch/arm/mach-msm/clock-8974.c
index 62064c3..107dc5a 100644
--- a/arch/arm/mach-msm/clock-8974.c
+++ b/arch/arm/mach-msm/clock-8974.c
@@ -5231,6 +5231,7 @@
};
#define PLL_AUX_OUTPUT_BIT 1
+#define PLL_AUX2_OUTPUT_BIT 2
static void __init reg_init(void)
{
@@ -5249,9 +5250,9 @@
configure_pll(&mmpll3_config, &mmpll3_regs, 0);
configure_pll(&lpapll0_config, &lpapll0_regs, 1);
- /* Active GPLL0's aux output. This is needed by acpuclock. */
+ /* Enable GPLL0's aux outputs. */
regval = readl_relaxed(GCC_REG_BASE(GPLL0_USER_CTL_REG));
- regval |= BIT(PLL_AUX_OUTPUT_BIT);
+ regval |= BIT(PLL_AUX_OUTPUT_BIT) | BIT(PLL_AUX2_OUTPUT_BIT);
writel_relaxed(regval, GCC_REG_BASE(GPLL0_USER_CTL_REG));
/* Vote for GPLL0 to turn on. Needed by acpuclock. */