All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] IMX6SX clock fix gpmi
@ 2015-11-24 11:50 Bärtsch Peter
  2015-11-24 13:56 ` Fabio Estevam
  0 siblings, 1 reply; 2+ messages in thread
From: Bärtsch Peter @ 2015-11-24 11:50 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] IMX6SX clock fix gpmi
  2015-11-24 11:50 [U-Boot] IMX6SX clock fix gpmi Bärtsch Peter
@ 2015-11-24 13:56 ` Fabio Estevam
  0 siblings, 0 replies; 2+ messages in thread
From: Fabio Estevam @ 2015-11-24 13:56 UTC (permalink / raw)
  To: u-boot

Hi Peter,

On Tue, Nov 24, 2015 at 9:50 AM, B?rtsch Peter <Peter.Baertsch@tem.ch> wrote:
> Hi,
>
> Here a imx6sx clock fix for using raw nand gpmi interface.

Thanks for sending your fix.

You need to add your Signed-off-by tag to your patch and also a commit
log explaining why this change is needed.

You can refer to http://www.denx.de/wiki/U-Boot/Patches

Please copy the ARM imx maintainer Stefano Babic <sbabic@denx.de>.

Also, it would be better to use git send-email.

Thanks,

Fabio Estevam

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-24 13:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-24 11:50 [U-Boot] IMX6SX clock fix gpmi Bärtsch Peter
2015-11-24 13:56 ` Fabio Estevam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.