From fd302cce4e81fd16fc7d0915bba3cd076bb75a73 Mon Sep 17 00:00:00 2001 From: Bai Ping Date: Fri, 14 Sep 2018 19:22:55 +0800 Subject: [PATCH] MLK-19589-03 driver: cpufreq: Add cpufreq support for imx6ulz Add cpufreq support for i.MX6ULZ. Signed-off-by: Bai Ping --- drivers/cpufreq/imx6q-cpufreq.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index ceb410701dc0..ab1b0ecb13f0 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -138,7 +138,8 @@ static int imx6q_set_target(struct cpufreq_policy *policy, unsigned int index) * - Disable pll2_pfd2_396m_clk */ if (of_machine_is_compatible("fsl,imx6ul") || - of_machine_is_compatible("fsl,imx6ull")) { + of_machine_is_compatible("fsl,imx6ull") || + of_machine_is_compatible("fsl,imx6ulz")) { /* * When changing pll1_sw_clk's parent to pll1_sys_clk, * CPU may run at higher than 528MHz, this will lead to @@ -321,7 +322,8 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev) } if (of_machine_is_compatible("fsl,imx6ul") || - of_machine_is_compatible("fsl,imx6ull")) { + of_machine_is_compatible("fsl,imx6ull") || + of_machine_is_compatible("fsl,imx6ulz")) { pll2_bus_clk = clk_get(cpu_dev, "pll2_bus"); secondary_sel_clk = clk_get(cpu_dev, "secondary_sel"); if (IS_ERR(pll2_bus_clk) || IS_ERR(secondary_sel_clk)) {