ARM: i.MX6Q: correct emi_sel clock muxing
Subsystems (3)
PATCH 1/1 ARM: i.MX6Q: correct emi_sel clock muxing
From: Liu Ying <[email protected]>
The correct muxing for emi_sel clock should be 2b'00 - 396M PFD
2b'01 - PLL3
2b'10 - AXI clk root
2b'11 - 352M PFD
This patch corrects the muxing in the clock driver.
Signed-off-by Liu Ying <[email protected]>
Signed-off-by Shawn Guo <[email protected]>
--- arch/arm/mach-imx/clk-imx6q.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
arch/arm/mach-imx/clk-imx6q.c +3 -2
@@ -199,7 +199,8 @@ static const char *pcie_axi_sels[] = { "axi", "ahb", };static const char *ssi_sels[] = {"pll3_pfd2_508m" ,"pll3_pfd3_454m" ,"pll4_post_div" , };static const char *usdhc_sels[] = {"pll2_pfd2_396m" ,"pll2_pfd0_352m" , };static const char *enfc_sels[] = {"pll2_pfd0_352m" ,"pll2_bus" ,"pll3_usb_otg" ,"pll2_pfd2_396m" , }; -static const char *emi_sels[] = {"axi" ,"pll3_usb_otg" ,"pll2_pfd2_396m" ,"pll2_pfd0_352m" , }; +static const char *emi_sels[] = {"pll2_pfd2_396m" ,"pll3_usb_otg" ,"axi" ,"pll2_pfd0_352m" , }; +static const char *emi_slow_sels[] = {"axi" ,"pll3_usb_otg" ,"pll2_pfd2_396m" ,"pll2_pfd0_352m" , };static const char *vdo_axi_sels[] = {"axi" ,"ahb" , };static const char *vpu_axi_sels[] = {"axi" ,"pll2_pfd2_396m" ,"pll2_pfd0_352m" , };static const char *cko1_sels[] = {"pll3_usb_otg" ,"pll2_bus" ,"pll1_sys" ,"pll5_video_div" ,
@@ -392,7 +393,7 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node) clk[usdhc4_sel] =imx_clk_mux ("usdhc4_sel" , base +0x1c ,19 ,1 , usdhc_sels,ARRAY_SIZE (usdhc_sels)); clk[enfc_sel] =imx_clk_mux ("enfc_sel" , base +0x2c ,16 ,2 , enfc_sels,ARRAY_SIZE (enfc_sels)); clk[emi_sel] =imx_clk_mux ("emi_sel" , base +0x1c ,27 ,2 , emi_sels,ARRAY_SIZE (emi_sels)); - clk[emi_slow_sel] =imx_clk_mux ("emi_slow_sel" , base +0x1c ,29 ,2 , emi_sels,ARRAY_SIZE (emi_sels)); + clk[emi_slow_sel] =imx_clk_mux ("emi_slow_sel" , base +0x1c ,29 ,2 , emi_slow_sels,ARRAY_SIZE (emi_slow_sels)); clk[vdo_axi_sel] =imx_clk_mux ("vdo_axi_sel" , base +0x18 ,11 ,1 , vdo_axi_sels,ARRAY_SIZE (vdo_axi_sels)); clk[vpu_axi_sel] =imx_clk_mux ("vpu_axi_sel" , base +0x18 ,14 ,2 , vpu_axi_sels,ARRAY_SIZE (vpu_axi_sels)); clk[cko1_sel] =imx_clk_mux ("cko1_sel" , base +0x60 ,0 ,4 , cko1_sels,ARRAY_SIZE (cko1_sels));
Signature · 1 line
1.7.9.5
PATCH 1/1 ARM: i.MX6Q: correct emi_sel clock muxing
Quoted 8 lines · Shawn Guo
From: Liu Ying <[email protected]>
The correct muxing for
emi_selclock should be 2b'00 - 396M PFD
2b'01 - PLL3
2b'10 - AXI clk root
2b'11 - 352M PFD
Quoted 4 lines
This patch corrects the muxing in the clock driver.
Signed-off-by Liu Ying <[email protected]>Signed-off-by Shawn Guo <[email protected]>
Acked-by Dirk Behme <[email protected]>
Thanks
Dirk
Quoted 27 lines
--- arch/arm/mach-imx/clk-imx6q.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)arch/arm/mach-imx/clk-imx6q.c +3
-2@@ -199,7 +199,8 @@ static const char *pcie_axi_sels[] = { "axi", "ahb", };static const char *ssi_sels[] = {"pll3_pfd2_508m" ,"pll3_pfd3_454m" ,"pll4_post_div" , };static const char *usdhc_sels[] = {"pll2_pfd2_396m" ,"pll2_pfd0_352m" , };static const char *enfc_sels[] = {"pll2_pfd0_352m" ,"pll2_bus" ,"pll3_usb_otg" ,"pll2_pfd2_396m" , }; -static const char *emi_sels[] = {"axi" ,"pll3_usb_otg" ,"pll2_pfd2_396m" ,"pll2_pfd0_352m" , }; +static const char *emi_sels[] = {"pll2_pfd2_396m" ,"pll3_usb_otg" ,"axi" ,"pll2_pfd0_352m" , }; +static const char *emi_slow_sels[] = {"axi" ,"pll3_usb_otg" ,"pll2_pfd2_396m" ,"pll2_pfd0_352m" , };static const char *vdo_axi_sels[] = {"axi" ,"ahb" , };static const char *vpu_axi_sels[] = {"axi" ,"pll2_pfd2_396m" ,"pll2_pfd0_352m" , };static const char *cko1_sels[] = {"pll3_usb_otg" ,"pll2_bus" ,"pll1_sys" ,"pll5_video_div" ,@@ -392,7 +393,7 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node) clk[usdhc4_sel] =imx_clk_mux ("usdhc4_sel" , base +0x1c ,19 ,1 , usdhc_sels,ARRAY_SIZE (usdhc_sels)); clk[enfc_sel] =imx_clk_mux ("enfc_sel" , base +0x2c ,16 ,2 , enfc_sels,ARRAY_SIZE (enfc_sels)); clk[emi_sel] =imx_clk_mux ("emi_sel" , base +0x1c ,27 ,2 , emi_sels,ARRAY_SIZE (emi_sels)); - clk[emi_slow_sel] =imx_clk_mux ("emi_slow_sel" , base +0x1c ,29 ,2 , emi_sels,ARRAY_SIZE (emi_sels)); + clk[emi_slow_sel] =imx_clk_mux ("emi_slow_sel" , base +0x1c ,29 ,2 , emi_slow_sels,ARRAY_SIZE (emi_slow_sels)); clk[vdo_axi_sel] =imx_clk_mux ("vdo_axi_sel" , base +0x18 ,11 ,1 , vdo_axi_sels,ARRAY_SIZE (vdo_axi_sels)); clk[vpu_axi_sel] =imx_clk_mux ("vpu_axi_sel" , base +0x18 ,14 ,2 , vpu_axi_sels,ARRAY_SIZE (vpu_axi_sels)); clk[cko1_sel] =imx_clk_mux ("cko1_sel" , base +0x60 ,0 ,4 , cko1_sels,ARRAY_SIZE (cko1_sels));