summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2012-08-15 18:44:27 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-09-01 17:06:13 +0200
commit4ed9c886033b9fb64cba3d0ed84bdda927459c5a (patch)
tree9aa8d109010267fb8a53a01a2de3b48bceacaa8f
parent1f4faedd51ee72a57afb9edba2d71ba01a2ec20e (diff)
downloadu-boot-imx-4ed9c886033b9fb64cba3d0ed84bdda927459c5a.zip
u-boot-imx-4ed9c886033b9fb64cba3d0ed84bdda927459c5a.tar.gz
u-boot-imx-4ed9c886033b9fb64cba3d0ed84bdda927459c5a.tar.bz2
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>
-rw-r--r--board/atmel/at91sam9x5ek/at91sam9x5ek.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/atmel/at91sam9x5ek/at91sam9x5ek.c b/board/atmel/at91sam9x5ek/at91sam9x5ek.c
index 17db0fd..88b3478 100644
--- a/board/atmel/at91sam9x5ek/at91sam9x5ek.c
+++ b/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 */