clk: imx8mn: Add M7 core clock
PATCH 1/1 clk: imx8mn: Add M7 core clock
Add missing M7 core clock entry to the iMX8MN clock driver.
Signed-off-by Marek Vasut <[email protected]>
Cc Abel Vesa <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc NXP Linux Team <[email protected]>
Cc Peng Fan <[email protected]>
Cc Shawn Guo <[email protected]>
--- drivers/clk/imx/clk-imx8mn.c | 5 +++++ include/dt-bindings/clock/imx8mn-clock.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-)
drivers/clk/imx/clk-imx8mn.c +5 -0
@@ -40,6 +40,9 @@ static const char * const imx8mn_a53_sels[] = {"osc_24m", "arm_pll_out", "sys_plstatic const char *const imx8mn_a53_core_sels[] = {"arm_a53_div" ,"arm_pll_out" , }; +static const char *const imx8mn_m7_sels[] = {"osc_24m" ,"sys_pll2_200m" ,"sys_pll2_250m" ,"vpu_pll_out" , +"sys_pll1_800m" ,"audio_pll1_out" ,"video_pll1_out" ,"sys_pll3_out" , }; +static const char *const imx8mn_gpu_core_sels[] = {"osc_24m" ,"gpu_pll_out" ,"sys_pll1_800m" ,"sys_pll3_out" ,"sys_pll2_1000m" ,"audio_pll1_out" ,"video_pll1_out" ,"audio_pll2_out" , };
@@ -421,6 +424,8 @@ static int imx8mn_clocks_probe(struct platform_device *pdev) hws[IMX8MN_CLK_A53_SRC ] = hws[IMX8MN_CLK_A53_DIV ]; hws[IMX8MN_CLK_A53_CG ] = hws[IMX8MN_CLK_A53_DIV ]; + hws[IMX8MN_CLK_M7_CORE ] =imx8m_clk_hw_composite_core ("arm_m7_core" , imx8mn_m7_sels, base +0x8080 ); + hws[IMX8MN_CLK_GPU_CORE ] =imx8m_clk_hw_composite_core ("gpu_core" , imx8mn_gpu_core_sels, base +0x8180 ); hws[IMX8MN_CLK_GPU_SHADER ] =imx8m_clk_hw_composite_core ("gpu_shader" , imx8mn_gpu_shader_sels, base +0x8200 );
include/dt-bindings/clock/imx8mn-clock.h +3 -1
@@ -241,6 +241,8 @@#define IMX8MN_CLK_CLKOUT2_DIV 219#define IMX8MN_CLK_CLKOUT2 220 -#define IMX8MN_CLK_END 221 +#define IMX8MN_CLK_M7_CORE 221 + +#define IMX8MN_CLK_END 222#endif
Signature · 1 line
2.30.2
Quoted 8 lines · Marek Vasut
Add missing M7 core clock entry to the iMX8MN clock driver.
Signed-off-by Marek Vasut <[email protected]>Cc Abel Vesa <[email protected]>Cc Fabio Estevam <[email protected]>Cc NXP Linux Team <[email protected]>Cc Peng Fan <[email protected]>Cc Shawn Guo <[email protected]>
I'm OK with it.
Reviewed-by Abel Vesa <[email protected]>
Quoted 45 lines
--- drivers/clk/imx/clk-imx8mn.c | 5 +++++ include/dt-bindings/clock/imx8mn-clock.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-)drivers/clk/imx/clk-imx8mn.c +5
-0@@ -40,6 +40,9 @@ static const char * const imx8mn_a53_sels[] = {"osc_24m", "arm_pll_out", "sys_plstatic const char *const imx8mn_a53_core_sels[] = {"arm_a53_div" ,"arm_pll_out" , }; +static const char *const imx8mn_m7_sels[] = {"osc_24m" ,"sys_pll2_200m" ,"sys_pll2_250m" ,"vpu_pll_out" , +"sys_pll1_800m" ,"audio_pll1_out" ,"video_pll1_out" ,"sys_pll3_out" , }; +static const char *const imx8mn_gpu_core_sels[] = {"osc_24m" ,"gpu_pll_out" ,"sys_pll1_800m" ,"sys_pll3_out" ,"sys_pll2_1000m" ,"audio_pll1_out" ,"video_pll1_out" ,"audio_pll2_out" , };@@ -421,6 +424,8 @@ static int imx8mn_clocks_probe(struct platform_device *pdev) hws[IMX8MN_CLK_A53_SRC ] = hws[IMX8MN_CLK_A53_DIV ]; hws[IMX8MN_CLK_A53_CG ] = hws[IMX8MN_CLK_A53_DIV ]; + hws[IMX8MN_CLK_M7_CORE ] =imx8m_clk_hw_composite_core ("arm_m7_core" , imx8mn_m7_sels, base +0x8080 ); + hws[IMX8MN_CLK_GPU_CORE ] =imx8m_clk_hw_composite_core ("gpu_core" , imx8mn_gpu_core_sels, base +0x8180 ); hws[IMX8MN_CLK_GPU_SHADER ] =imx8m_clk_hw_composite_core ("gpu_shader" , imx8mn_gpu_shader_sels, base +0x8200 );include/dt-bindings/clock/imx8mn-clock.h +3
-1@@ -241,6 +241,8 @@#define IMX8MN_CLK_CLKOUT2_DIV 219#define IMX8MN_CLK_CLKOUT2 220 -#define IMX8MN_CLK_END 221 +#define IMX8MN_CLK_M7_CORE 221 + +#define IMX8MN_CLK_END 222#endif Signature · 1 line
2.30.2
Hi Marek,
Quoted 9 lines · Marek Vasut
Add missing M7 core clock entry to the iMX8MN clock driver.
Signed-off-by Marek Vasut <[email protected]>Cc Abel Vesa <[email protected]>Cc Fabio Estevam <[email protected]>Cc NXP Linux Team <[email protected]>Cc Peng Fan <[email protected]>Cc Shawn Guo <[email protected]>
Reviewed-by Fabio Estevam <[email protected]>
Abel Vesa
AppliedQuoted 8 lines · Marek Vasut
Add missing M7 core clock entry to the iMX8MN clock driver.
Signed-off-by Marek Vasut <[email protected]>Cc Abel Vesa <[email protected]>Cc Fabio Estevam <[email protected]>Cc NXP Linux Team <[email protected]>Cc Peng Fan <[email protected]>Cc Shawn Guo <[email protected]>
Applied, thanks.
Quoted 45 lines
--- drivers/clk/imx/clk-imx8mn.c | 5 +++++ include/dt-bindings/clock/imx8mn-clock.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-)drivers/clk/imx/clk-imx8mn.c +5
-0@@ -40,6 +40,9 @@ static const char * const imx8mn_a53_sels[] = {"osc_24m", "arm_pll_out", "sys_plstatic const char *const imx8mn_a53_core_sels[] = {"arm_a53_div" ,"arm_pll_out" , }; +static const char *const imx8mn_m7_sels[] = {"osc_24m" ,"sys_pll2_200m" ,"sys_pll2_250m" ,"vpu_pll_out" , +"sys_pll1_800m" ,"audio_pll1_out" ,"video_pll1_out" ,"sys_pll3_out" , }; +static const char *const imx8mn_gpu_core_sels[] = {"osc_24m" ,"gpu_pll_out" ,"sys_pll1_800m" ,"sys_pll3_out" ,"sys_pll2_1000m" ,"audio_pll1_out" ,"video_pll1_out" ,"audio_pll2_out" , };@@ -421,6 +424,8 @@ static int imx8mn_clocks_probe(struct platform_device *pdev) hws[IMX8MN_CLK_A53_SRC ] = hws[IMX8MN_CLK_A53_DIV ]; hws[IMX8MN_CLK_A53_CG ] = hws[IMX8MN_CLK_A53_DIV ]; + hws[IMX8MN_CLK_M7_CORE ] =imx8m_clk_hw_composite_core ("arm_m7_core" , imx8mn_m7_sels, base +0x8080 ); + hws[IMX8MN_CLK_GPU_CORE ] =imx8m_clk_hw_composite_core ("gpu_core" , imx8mn_gpu_core_sels, base +0x8180 ); hws[IMX8MN_CLK_GPU_SHADER ] =imx8m_clk_hw_composite_core ("gpu_shader" , imx8mn_gpu_shader_sels, base +0x8200 );include/dt-bindings/clock/imx8mn-clock.h +3
-1@@ -241,6 +241,8 @@#define IMX8MN_CLK_CLKOUT2_DIV 219#define IMX8MN_CLK_CLKOUT2 220 -#define IMX8MN_CLK_END 221 +#define IMX8MN_CLK_M7_CORE 221 + +#define IMX8MN_CLK_END 222#endif Signature · 1 line
2.30.2