ARM: clk-imx6sl: correct the pxp and epdc axi clock selections
Subsystems (3)
PATCH 1/1 ARM: clk-imx6sl: correct the pxp and epdc axi clock selections
The parent clocks of IMX6SL_CLK_PXP_AXI_SEL and IMX6SL_CLK_EPDC_AXI_SEL clocks are not the same. So split the epdc_pxp_sels into two different clock selections 'pxp_axi_sels' and 'epdc_axi_sels'.
Signed-off-by Fancy Fang <[email protected]>
Signed-off-by Robby Cai <[email protected]>
Acked-by Shawn Guo <[email protected]>
--- arch/arm/mach-imx/clk-imx6sl.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
arch/arm/mach-imx/clk-imx6sl.c +4 -3
@@ -47,7 +47,8 @@ static const char *csi_lcdif_sels[] = { "mmdc", "pll2_pfd2", "pll3_120m", "pll3_static const char *usdhc_sels[] = {"pll2_pfd2" ,"pll2_pfd0" , };static const char *ssi_sels[] = {"pll3_pfd2" ,"pll3_pfd3" ,"pll4_audio_div" ,"dummy" , };static const char *perclk_sels[] = {"ipg" ,"osc" , }; -static const char *epdc_pxp_sels[] = {"mmdc" ,"pll3_usb_otg" ,"pll5_video_div" ,"pll2_pfd0" ,"pll2_pfd2" ,"pll3_pfd1" , }; +static const char *pxp_axi_sels[] = {"pll2_bus" ,"pll3_usb_otg" ,"pll5_video_div" ,"pll2_pfd0" ,"pll2_pfd2" ,"pll3_pfd3" , }; +static const char *epdc_axi_sels[] = {"pll2_bus" ,"pll3_usb_otg" ,"pll5_video_div" ,"pll2_pfd0" ,"pll2_pfd2" ,"pll3_pfd2" , };static const char *gpu2d_ovg_sels[] = {"pll3_pfd1" ,"pll3_usb_otg" ,"pll2_bus" ,"pll2_pfd2" , };static const char *gpu2d_sels[] = {"pll2_pfd2" ,"pll3_usb_otg" ,"pll3_pfd1" ,"pll2_bus" , };static const char *lcdif_pix_sels[] = {"pll2_bus" ,"pll3_usb_otg" ,"pll5_video_div" ,"pll2_pfd0" ,"pll3_pfd0" ,"pll3_pfd1" , };
@@ -251,8 +252,8 @@ static void __init imx6sl_clocks_init(struct device_node *ccm_node) clks[IMX6SL_CLK_SSI2_SEL ] =imx_clk_fixup_mux ("ssi2_sel" , base +0x1c ,12 ,2 , ssi_sels,ARRAY_SIZE (ssi_sels), imx_cscmr1_fixup); clks[IMX6SL_CLK_SSI3_SEL ] =imx_clk_fixup_mux ("ssi3_sel" , base +0x1c ,14 ,2 , ssi_sels,ARRAY_SIZE (ssi_sels), imx_cscmr1_fixup); clks[IMX6SL_CLK_PERCLK_SEL ] =imx_clk_fixup_mux ("perclk_sel" , base +0x1c ,6 ,1 , perclk_sels,ARRAY_SIZE (perclk_sels), imx_cscmr1_fixup); - clks[IMX6SL_CLK_PXP_AXI_SEL ] =imx_clk_mux ("pxp_axi_sel" , base +0x34 ,6 ,3 , epdc_pxp_sels,ARRAY_SIZE (epdc_pxp_sels)); - clks[IMX6SL_CLK_EPDC_AXI_SEL ] =imx_clk_mux ("epdc_axi_sel" , base +0x34 ,15 ,3 , epdc_pxp_sels,ARRAY_SIZE (epdc_pxp_sels)); + clks[IMX6SL_CLK_PXP_AXI_SEL ] =imx_clk_mux ("pxp_axi_sel" , base +0x34 ,6 ,3 , pxp_axi_sels,ARRAY_SIZE (pxp_axi_sels)); + clks[IMX6SL_CLK_EPDC_AXI_SEL ] =imx_clk_mux ("epdc_axi_sel" , base +0x34 ,15 ,3 , epdc_axi_sels,ARRAY_SIZE (epdc_axi_sels)); clks[IMX6SL_CLK_GPU2D_OVG_SEL ] =imx_clk_mux ("gpu2d_ovg_sel" , base +0x18 ,4 ,2 , gpu2d_ovg_sels,ARRAY_SIZE (gpu2d_ovg_sels)); clks[IMX6SL_CLK_GPU2D_SEL ] =imx_clk_mux ("gpu2d_sel" , base +0x18 ,8 ,2 , gpu2d_sels,ARRAY_SIZE (gpu2d_sels)); clks[IMX6SL_CLK_LCDIF_PIX_SEL ] =imx_clk_mux ("lcdif_pix_sel" , base +0x38 ,6 ,3 , lcdif_pix_sels,ARRAY_SIZE (lcdif_pix_sels));
Signature · 1 line
1.9.1