Skip to contentSkip to conversation

at91sam9x5: set default EBI I/O drive configuration.

PATCH New Josh Wu 2 participants 2 messages Sep 6, 2012 – Sep 13, 2012 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore

Josh Wu

author
#0 lore raw

PATCH 1/1 at91sam9x5: set default EBI I/O drive configuration.

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).

---
 board/atmel/at91sam9x5ek/at91sam9x5ek.c |    4 ++++
 1 file changed, 4 insertions(+)
board/atmel/at91sam9x5ek/at91sam9x5ek.c +4 -0
index ae408bc..06028aa 100644
@@ -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 */
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 at91sam9x5: set default EBI I/O drive configuration.

Dear Josh Wu,

Quoted 4 lines · Josh Wu

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).

---

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

Best regards

Andreas Bie?mann