summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBai Ping <b51503@freescale.com>2015-08-12 21:55:08 +0800
committerNitin Garg <nitin.garg@nxp.com>2016-01-14 10:59:45 -0600
commitcef13fcd3319515e164dec2e19bb30dbba38e83d (patch)
treeaf7fe4a43327a6e93a9822f43b9189864281a936
parentcaf1acca7b65545d1f521461018201e8e945ba05 (diff)
MLK-11343-02 cpufreq: imx: add more clk used by cpufreq
This patch adds pll1, pll_bypass and pll1_bypass_src that will be used in ARM clock switching code. Signed-off-by: Bai Ping <b51503@freescale.com>
-rw-r--r--drivers/cpufreq/imx6q-cpufreq.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c
index 3725f5244566..81cf2c76d1e9 100644
--- a/drivers/cpufreq/imx6q-cpufreq.c
+++ b/drivers/cpufreq/imx6q-cpufreq.c
@@ -179,8 +179,12 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev)
pll1_sw_clk = devm_clk_get(cpu_dev, "pll1_sw");
step_clk = devm_clk_get(cpu_dev, "step");
pll2_pfd2_396m_clk = devm_clk_get(cpu_dev, "pll2_pfd2_396m");
+ pll1 = devm_clk_get(cpu_dev, "pll1");
+ pll1_bypass = devm_clk_get(cpu_dev, "pll1_bypass");
+ pll1_bypass_src = devm_clk_get(cpu_dev, "pll1_bypass_src");
if (IS_ERR(arm_clk) || IS_ERR(pll1_sys_clk) || IS_ERR(pll1_sw_clk) ||
- IS_ERR(step_clk) || IS_ERR(pll2_pfd2_396m_clk)) {
+ IS_ERR(step_clk) || IS_ERR(pll2_pfd2_396m_clk) || IS_ERR(pll1) ||
+ IS_ERR(pll1_bypass) || IS_ERR(pll1_bypass_src)) {
dev_err(cpu_dev, "failed to get clocks\n");
ret = -ENOENT;
goto put_node;