GPMC registers need to be pre-initialized for NAND and NOR probe.
So this patch brings out GPMC H/W engine from IDLE state.

Signed-off-by: Pekon Gupta <pe...@ti.com>
---
 arch/arm/cpu/armv7/am33xx/clock_ti814x.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/cpu/armv7/am33xx/clock_ti814x.c 
b/arch/arm/cpu/armv7/am33xx/clock_ti814x.c
index 658772b..149590e 100644
--- a/arch/arm/cpu/armv7/am33xx/clock_ti814x.c
+++ b/arch/arm/cpu/armv7/am33xx/clock_ti814x.c
@@ -269,6 +269,11 @@ static void enable_per_clocks(void)
        while (readl(&cmalwon->uart0clkctrl) != PRCM_MOD_EN)
                ;
 
+       /* GPMC */
+       writel(PRCM_MOD_EN, &cmalwon->gpmcclkctrl);
+       while (readl(&cmalwon->gpmcclkctrl) != PRCM_MOD_EN)
+               ;
+
        /* HSMMC1 */
        writel(PRCM_MOD_EN, &cmalwon->mmchs1clkctrl);
        while (readl(&cmalwon->mmchs1clkctrl) != PRCM_MOD_EN)
-- 
1.8.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to