[U-Boot] [PATCH] da850/omap-l138: enable SPI flash in RMII mode

Prabhakar Lad prabhakar.lad at ti.com
Fri Jun 1 15:48:31 CEST 2012


From: Rajashekhara, Sudhakar <sudhakar.raj at ti.com>

According to DA850/OMAP-L138 schematics, GP2[6] line has to be driven
high for RMII mode to work. In RMII mode, SPI flash becomes un-usable.
But during testing it was found out that, driving GP2[6] low also
enables RMII and in this configuration SPI flash is also accessible.

Signed-off-by: Rajashekhara, Sudhakar <sudhakar.raj at ti.com>
Signed-off-by: Lad, Prabhakar <prabhakar.lad at ti.com>
Signed-off-by: Hadli, Manjunath <manjunath.hadli at ti.com>
---
 board/davinci/da8xxevm/da850evm.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c
index 004d5ad..82d707f 100644
--- a/board/davinci/da8xxevm/da850evm.c
+++ b/board/davinci/da8xxevm/da850evm.c
@@ -438,10 +438,10 @@ int rmii_hw_init(void)
 				CONFIG_SYS_I2C_EXPANDER_ADDR);
 	}
 
-	/* Set the output as high */
-	temp = REG(GPIO_BANK2_REG_SET_ADDR);
+	/* Set the output as low */
+	temp = REG(GPIO_BANK2_REG_CLR_ADDR);
 	temp |= (0x01 << 6);
-	REG(GPIO_BANK2_REG_SET_ADDR) = temp;
+	REG(GPIO_BANK2_REG_CLR_ADDR) = temp;
 
 	/* Set the GPIO direction as output */
 	temp = REG(GPIO_BANK2_REG_DIR_ADDR);
-- 
1.7.4.1



More information about the U-Boot mailing list