[U-Boot] IMX6SX clock fix gpmi

Bärtsch Peter Peter.Baertsch at tem.ch
Tue Nov 24 12:50:35 CET 2015


Hi,

Here a imx6sx clock fix for using raw nand gpmi interface.

Index: git/arch/arm/cpu/armv7/mx6/clock.c
===================================================================
--- git.orig/arch/arm/cpu/armv7/mx6/clock.c   2015-11-24 10:06:02.814884669 +0100
+++ git/arch/arm/cpu/armv7/mx6/clock.c         2015-11-24 10:06:03.442884668 +0100
@@ -47,6 +47,17 @@
                                   MXC_CCM_CCGR4_RAWNAND_U_GPMI_INPUT_APB_MASK |
                                   MXC_CCM_CCGR4_PL301_MX6QPER1_BCH_MASK);
+#ifdef CONFIG_MX6SX
+             clrbits_le32(&imx_ccm->CCGR4, MXC_CCM_CCGR4_QSPI2_ENFC_MASK);
+
+             clrsetbits_le32(&imx_ccm->cs2cdr,
+                                            MXC_CCM_CS2CDR_QSPI2_CLK_PODF_MASK |
+                                            MXC_CCM_CS2CDR_QSPI2_CLK_PRED_MASK |
+                                            MXC_CCM_CS2CDR_QSPI2_CLK_SEL_MASK,
+                                            cfg);
+
+             setbits_le32(&imx_ccm->CCGR4, MXC_CCM_CCGR4_QSPI2_ENFC_MASK);
+#else
               clrbits_le32(&imx_ccm->CCGR2, MXC_CCM_CCGR2_IOMUX_IPT_CLK_IO_MASK);
                clrsetbits_le32(&imx_ccm->cs2cdr,
@@ -56,6 +67,7 @@
                                              cfg);
                setbits_le32(&imx_ccm->CCGR2, MXC_CCM_CCGR2_IOMUX_IPT_CLK_IO_MASK);
+#endif
               setbits_le32(&imx_ccm->CCGR4,
                                   MXC_CCM_CCGR4_RAWNAND_U_BCH_INPUT_APB_MASK |
                                   MXC_CCM_CCGR4_RAWNAND_U_GPMI_BCH_INPUT_BCH_MASK |


Kind regards
Peter Bärtsch

TEM AG
Triststrasse 8
7007 Chur, Schweiz



More information about the U-Boot mailing list