[U-Boot] [PATCH 2/2] board: atmel: sama5d2_ptc_ek: update pin configuration for NAND

Eugen Hristev eugen.hristev at microchip.com
Mon Apr 23 07:59:50 UTC 2018


From: Ludovic Desroches <ludovic.desroches at microchip.com>

The drive strength has to be set to medium for the NAND data lines.
With a low drive, we can get some data corruption.

Signed-off-by: Ludovic Desroches <ludovic.desroches at microchip.com>
---
 board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c b/board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c
index 4c2e209..607abfe 100644
--- a/board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c
+++ b/board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c
@@ -49,14 +49,14 @@ static void board_nand_hw_init(void)
 	       AT91_SMC_MODE_TDF_CYCLE(3),
 	       &smc->cs[3].mode);
 
-	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 22, 0);	/* D0 */
-	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 23, 0);	/* D1 */
-	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 24, 0);	/* D2 */
-	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 25, 0);	/* D3 */
-	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 26, 0);	/* D4 */
-	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 27, 0);	/* D5 */
-	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 28, 0);	/* D6 */
-	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 29, 0);	/* D7 */
+	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 22, ATMEL_PIO_DRVSTR_ME);	/* D0 */
+	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 23, ATMEL_PIO_DRVSTR_ME);	/* D1 */
+	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 24, ATMEL_PIO_DRVSTR_ME);	/* D2 */
+	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 25, ATMEL_PIO_DRVSTR_ME);	/* D3 */
+	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 26, ATMEL_PIO_DRVSTR_ME);	/* D4 */
+	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 27, ATMEL_PIO_DRVSTR_ME);	/* D5 */
+	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 28, ATMEL_PIO_DRVSTR_ME);	/* D6 */
+	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 29, ATMEL_PIO_DRVSTR_ME);	/* D7 */
 	atmel_pio4_set_b_periph(AT91_PIO_PORTB, 2, 0);	/* RE */
 	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 30, 0);	/* WE */
 	atmel_pio4_set_b_periph(AT91_PIO_PORTA, 31, 1);	/* NCS */
-- 
2.7.4



More information about the U-Boot mailing list