Skip to content
Snippets Groups Projects
Commit 4ed9c886 authored by Bo Shen's avatar Bo Shen Committed by Albert ARIBAUD
Browse files

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: default avatarBo Shen <voice.shen@atmel.com>
Signed-off-by: default avatarAndreas Bießmann <andreas.devel@googlemail.com>
parent 1f4faedd
No related branches found
No related tags found
No related merge requests found
...@@ -60,6 +60,8 @@ static void at91sam9x5ek_nand_hw_init(void) ...@@ -60,6 +60,8 @@ static void at91sam9x5ek_nand_hw_init(void)
/* Enable CS3 */ /* Enable CS3 */
csa = readl(&matrix->ebicsa); csa = readl(&matrix->ebicsa);
csa |= AT91_MATRIX_EBI_CS3A_SMC_SMARTMEDIA; csa |= AT91_MATRIX_EBI_CS3A_SMC_SMARTMEDIA;
/* NAND flash on D16 */
csa |= AT91_MATRIX_NFD0_ON_D16;
writel(csa, &matrix->ebicsa); writel(csa, &matrix->ebicsa);
/* Configure SMC CS3 for NAND/SmartMedia */ /* Configure SMC CS3 for NAND/SmartMedia */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment