Patchwork [U-Boot,v1,1/2] am33xx: enable GPMC clocks for TI814x

login
register
mail settings
Submitter pekon gupta
Date Aug. 6, 2013, 9:40 a.m.
Message ID <1375782016-23975-1-git-send-email-pekon@ti.com>
Download mbox | patch
Permalink /patch/264956/
State Not Applicable
Delegated to: Tom Rini
Headers show

Comments

pekon gupta - Aug. 6, 2013, 9:40 a.m.
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 <pekon@ti.com>
---
 arch/arm/cpu/armv7/am33xx/clock_ti814x.c | 5 +++++
 1 file changed, 5 insertions(+)

Patch

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)