msm: clock-8960: Set PXO as parent of HDMI PLL
When the HDMI PLL is enabled we should prevent PXO shutdown. Add
PXO as the parent of the PLL so that the XO is turned on whenever
the PLL is enabled.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/arch/arm/mach-msm/clock-8960.c b/arch/arm/mach-msm/clock-8960.c
index 4a749d0..f8af4f4 100644
--- a/arch/arm/mach-msm/clock-8960.c
+++ b/arch/arm/mach-msm/clock-8960.c
@@ -3481,11 +3481,17 @@
return hdmi_pll_get_rate();
}
+static struct clk *hdmi_pll_clk_get_parent(struct clk *clk)
+{
+ return &pxo_clk.c;
+}
+
static struct clk_ops clk_ops_hdmi_pll = {
.enable = hdmi_pll_clk_enable,
.disable = hdmi_pll_clk_disable,
.get_rate = hdmi_pll_clk_get_rate,
.is_local = local_clk_is_local,
+ .get_parent = hdmi_pll_clk_get_parent,
};
static struct clk hdmi_pll_clk = {