summaryrefslogtreecommitdiff
path: root/drivers/clk/imx/clk-imx7d.c
diff options
context:
space:
mode:
authorBai Ping <b51503@freescale.com>2015-11-24 13:25:14 +0300
committerShawn Guo <shawnguo@kernel.org>2015-12-02 08:34:01 +0300
commitfdb868cd059a97b35e4a5fcfa073a5d9c375fcdf (patch)
tree4b69691cf1d667f7e187e9662c2d0857f9af4d11 /drivers/clk/imx/clk-imx7d.c
parent2e133f61882baefaf89dc79c56a7975d80360ef4 (diff)
downloadlinux-fdb868cd059a97b35e4a5fcfa073a5d9c375fcdf.tar.xz
clk: imx: Add a virtual arm clk on i.mx7d
Add a virtual arm clk to abstract the actual steps when changing the ARM core frequency.So we can using the 'cpufreq-dt' driver on i.MX7D/Solo. Signed-off-by: Bai Ping <b51503@freescale.com> Acked-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/clk/imx/clk-imx7d.c')
-rw-r--r--drivers/clk/imx/clk-imx7d.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c
index 448ef321948b..581b428d3133 100644
--- a/drivers/clk/imx/clk-imx7d.c
+++ b/drivers/clk/imx/clk-imx7d.c
@@ -833,6 +833,12 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node)
clks[IMX7D_GPT_3M_CLK] = imx_clk_fixed_factor("gpt_3m", "osc", 1, 8);
+ clks[IMX7D_CLK_ARM] = imx_clk_cpu("arm", "arm_a7_root_clk",
+ clks[IMX7D_ARM_A7_ROOT_CLK],
+ clks[IMX7D_ARM_A7_ROOT_SRC],
+ clks[IMX7D_PLL_ARM_MAIN_CLK],
+ clks[IMX7D_PLL_SYS_MAIN_CLK]);
+
for (i = 0; i < ARRAY_SIZE(clks); i++)
if (IS_ERR(clks[i]))
pr_err("i.MX7D clk %d: register failed with %ld\n",