diff mbox

[U-Boot] arm: mx6: gw_ventana: Change clock init to enable NAND related clocks

Message ID 1417694646-18353-1-git-send-email-sr@denx.de
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show

Commit Message

Stefan Roese Dec. 4, 2014, 12:04 p.m. UTC
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)

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Tim Harvey <tharvey@gateworks.com>
Cc: Stefano Babic <sbabic@denx.de>
---
 board/gateworks/gw_ventana/gw_ventana_spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Fabio Estevam Dec. 4, 2014, 12:35 p.m. UTC | #1
Hi Stefan,

On Thu, Dec 4, 2014 at 10:04 AM, Stefan Roese <sr@denx.de> wrote:
> 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)
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Fabio Estevam <fabio.estevam@freescale.com>
> Cc: Tim Harvey <tharvey@gateworks.com>
> Cc: Stefano Babic <sbabic@denx.de>

Thanks for the fix!

Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Stefano Babic Dec. 19, 2014, 2:45 p.m. UTC | #2
On 04/12/2014 13:04, Stefan Roese wrote:
> 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)
> 
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Fabio Estevam <fabio.estevam@freescale.com>
> Cc: Tim Harvey <tharvey@gateworks.com>
> Cc: Stefano Babic <sbabic@denx.de>
> ---

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic
diff mbox

Patch

diff --git a/board/gateworks/gw_ventana/gw_ventana_spl.c b/board/gateworks/gw_ventana/gw_ventana_spl.c
index d6a5847..9712812 100644
--- a/board/gateworks/gw_ventana/gw_ventana_spl.c
+++ b/board/gateworks/gw_ventana/gw_ventana_spl.c
@@ -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);
 }