Patchwork [U-Boot,2/8] OMAP3: Drop extra delay in gpmc_init

login
register
mail settings
Submitter Tom Rini
Date Dec. 6, 2011, 3:49 p.m.
Message ID <1323186582-2811-3-git-send-email-trini@ti.com>
Download mbox | patch
Permalink /patch/129715/
State Deferred
Delegated to: Tom Rini
Headers show

Comments

Tom Rini - Dec. 6, 2011, 3:49 p.m.
gpmc_init() was disabling chip select 0 and then waiting the required
amount of time for the change to settle before calling
enable_gpmc_cs_config on CS 0 which starts by disabling and then
sleeping.  Remove this redundancy.

Signed-off-by: Tom Rini <trini@ti.com>
---
 arch/arm/cpu/armv7/omap3/mem.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

Patch

diff --git a/arch/arm/cpu/armv7/omap3/mem.c b/arch/arm/cpu/armv7/omap3/mem.c
index 2fe5ac7..4a8c025 100644
--- a/arch/arm/cpu/armv7/omap3/mem.c
+++ b/arch/arm/cpu/armv7/omap3/mem.c
@@ -142,13 +142,6 @@  void gpmc_init(void)
 	config &= (~0xf00);
 	writel(config, &gpmc_cfg->config);
 
-	/*
-	 * Disable the GPMC0 config set by ROM code
-	 * It conflicts with our MPDB (both at 0x08000000)
-	 */
-	writel(0, &gpmc_cfg->cs[0].config7);
-	sdelay(1000);
-
 #if defined(CONFIG_CMD_NAND)	/* CS 0 */
 	gpmc_config = gpmc_m_nand;