Skip to contentSkip to conversation

arm: mx6: gw_ventana: Change clock init to enable NAND related clocks

PATCH New Stefan Roese 3 participants 3 messages Dec 4, 2014 – Dec 19, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: mx6: gw_ventana: Change clock init to enable NAND related clocks

Otherwise NAND booting is likely to fail. Since this disables the NAND related clocks and SPL can't load the main U-Boot from NAND.

This problem was introduced with this patch:

e25fbe3f (gw_ventana: Move the DCD settings to spl code)

Cc Fabio Estevam <[email protected]>
Cc Tim Harvey <[email protected]>
Cc Stefano Babic <[email protected]>
---
 board/gateworks/gw_ventana/gw_ventana_spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/gateworks/gw_ventana/gw_ventana_spl.c +1 -1
index d6a5847..9712812 100644
@@ -401,7 +401,7 @@ static void ccgr_init(void)
 	writel(0x0030FC03, &ccm->CCGR1);
 	writel(0x0FFFC000, &ccm->CCGR2);
 	writel(0x3FF00000, &ccm->CCGR3);
-	writel(0x00FFF300, &ccm->CCGR4);
+	writel(0xFFFFF300, &ccm->CCGR4);	/* enable NAND/GPMI/BCH clks */
 	writel(0x0F0000C3, &ccm->CCGR5);
 	writel(0x000003FF, &ccm->CCGR6);
 }
Signature · 1 line
2.2.0
#1 lore raw

PATCH 1/1 arm: mx6: gw_ventana: Change clock init to enable NAND related clocks

Hi Stefan,

Quoted 11 lines · Stefan Roese

Otherwise NAND booting is likely to fail. Since this disables the NAND related clocks and SPL can't load the main U-Boot from NAND.

This problem was introduced with this patch:

e25fbe3f (gw_ventana: Move the DCD settings to spl code)

Cc Fabio Estevam <[email protected]>
Cc Tim Harvey <[email protected]>
Cc Stefano Babic <[email protected]>

Thanks for the fix!

#2 lore raw

PATCH 1/1 arm: mx6: gw_ventana: Change clock init to enable NAND related clocks

In reply to Stefan Roese
Quoted 5 lines · Stefan Roese

Otherwise NAND booting is likely to fail. Since this disables the NAND related clocks and SPL can't load the main U-Boot from NAND.

This problem was introduced with this patch:

Quoted 7 lines

e25fbe3f (gw_ventana: Move the DCD settings to spl code)

Cc Fabio Estevam <[email protected]>
Cc Tim Harvey <[email protected]>
Cc Stefano Babic <[email protected]>

---

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================