Parcourir la source

arm : at91sam9x5 : fix a small bug for NAND

fix a bug:
  when not boot from NAND, the NAND flash can not be detected.
  Using this to fix it

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Bo Shen il y a 12 ans
Parent
commit
4ed9c88603
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      board/atmel/at91sam9x5ek/at91sam9x5ek.c

+ 2 - 0
board/atmel/at91sam9x5ek/at91sam9x5ek.c

@@ -60,6 +60,8 @@ static void at91sam9x5ek_nand_hw_init(void)
 	/* Enable CS3 */
 	csa = readl(&matrix->ebicsa);
 	csa |= AT91_MATRIX_EBI_CS3A_SMC_SMARTMEDIA;
+	/* NAND flash on D16 */
+	csa |= AT91_MATRIX_NFD0_ON_D16;
 	writel(csa, &matrix->ebicsa);
 
 	/* Configure SMC CS3 for NAND/SmartMedia */