Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bai Ping and committed by
Shawn Guo
fdb868cd 2e133f61

+8 -1
+6
drivers/clk/imx/clk-imx7d.c
··· 833 833 834 834 clks[IMX7D_GPT_3M_CLK] = imx_clk_fixed_factor("gpt_3m", "osc", 1, 8); 835 835 836 + clks[IMX7D_CLK_ARM] = imx_clk_cpu("arm", "arm_a7_root_clk", 837 + clks[IMX7D_ARM_A7_ROOT_CLK], 838 + clks[IMX7D_ARM_A7_ROOT_SRC], 839 + clks[IMX7D_PLL_ARM_MAIN_CLK], 840 + clks[IMX7D_PLL_SYS_MAIN_CLK]); 841 + 836 842 for (i = 0; i < ARRAY_SIZE(clks); i++) 837 843 if (IS_ERR(clks[i])) 838 844 pr_err("i.MX7D clk %d: register failed with %ld\n",
+2 -1
include/dt-bindings/clock/imx7d-clock.h
··· 447 447 #define IMX7D_SEMA4_HS_ROOT_CLK 434 448 448 #define IMX7D_PLL_DRAM_TEST_DIV 435 449 449 #define IMX7D_ADC_ROOT_CLK 436 450 - #define IMX7D_CLK_END 437 450 + #define IMX7D_CLK_ARM 437 451 + #define IMX7D_CLK_END 438 451 452 #endif /* __DT_BINDINGS_CLOCK_IMX7D_H */