msm: clock-8226: Fix clock test pin configuration
Ensure that input mode is disabled when output mode is enabled.
Change-Id: Iba27789ca52edce6cc3a0149912a5e75980029f0
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
diff --git a/arch/arm/mach-msm/clock-8226.c b/arch/arm/mach-msm/clock-8226.c
index fd3ba14..9921325 100644
--- a/arch/arm/mach-msm/clock-8226.c
+++ b/arch/arm/mach-msm/clock-8226.c
@@ -3043,7 +3043,8 @@
ret = (raw_count_full * clk->multiplier);
}
- writel_relaxed(0x51A00, GCC_REG_BASE(PLLTEST_PAD_CFG));
+ /* Set pin to gcc_debug_clock, enable output mode, disable input mode */
+ writel_relaxed(0x51200, GCC_REG_BASE(PLLTEST_PAD_CFG));
spin_unlock_irqrestore(&local_clock_reg_lock, flags);
clk_disable_unprepare(&xo.c);