public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] at91sam9x5: set default EBI I/O drive configuration.
@ 2012-09-06  8:14 Josh Wu
  2012-09-13 12:33 ` Andreas Bießmann
  0 siblings, 1 reply; 2+ messages in thread
From: Josh Wu @ 2012-09-06  8:14 UTC (permalink / raw)
  To: u-boot

This patch configure at91sam9x5's EBI drive I/O. Without this, When SD card boot, the nand flash read/write are not stable. Which will cause kernel MTD test fail (Since mainline kernel doesn't configure the EBI register).

Signed-off-by: Josh Wu <josh.wu@atmel.com>
---
 board/atmel/at91sam9x5ek/at91sam9x5ek.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/board/atmel/at91sam9x5ek/at91sam9x5ek.c b/board/atmel/at91sam9x5ek/at91sam9x5ek.c
index ae408bc..06028aa 100644
--- a/board/atmel/at91sam9x5ek/at91sam9x5ek.c
+++ b/board/atmel/at91sam9x5ek/at91sam9x5ek.c
@@ -62,6 +62,10 @@ static void at91sam9x5ek_nand_hw_init(void)
 	csa |= AT91_MATRIX_EBI_CS3A_SMC_SMARTMEDIA;
 	/* NAND flash on D16 */
 	csa |= AT91_MATRIX_NFD0_ON_D16;
+
+	/* Configure IO drive */
+	csa &= ~AT91_MATRIX_EBI_EBI_IOSR_NORMAL;
+
 	writel(csa, &matrix->ebicsa);
 
 	/* Configure SMC CS3 for NAND/SmartMedia */
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] at91sam9x5: set default EBI I/O drive configuration.
  2012-09-06  8:14 [U-Boot] [PATCH] at91sam9x5: set default EBI I/O drive configuration Josh Wu
@ 2012-09-13 12:33 ` Andreas Bießmann
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Bießmann @ 2012-09-13 12:33 UTC (permalink / raw)
  To: u-boot

Dear Josh Wu,

On 06.09.2012 10:14, Josh Wu wrote:
> This patch configure at91sam9x5's EBI drive I/O. Without this, When SD card boot, the nand flash read/write are not stable. Which will cause kernel MTD test fail (Since mainline kernel doesn't configure the EBI register).
> 
> Signed-off-by: Josh Wu <josh.wu@atmel.com>
> ---

applied to u-boot-atmel/master, thanks!

Best regards

Andreas Bie?mann

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-13 12:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-06  8:14 [U-Boot] [PATCH] at91sam9x5: set default EBI I/O drive configuration Josh Wu
2012-09-13 12:33 ` Andreas Bießmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox