1
0
Fork 0

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>
utp
Bo Shen 2012-08-15 18:44:27 +00:00 committed by Albert ARIBAUD
parent 1f4faedd51
commit 4ed9c88603
1 changed files with 2 additions and 0 deletions

View File

@ -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 */