From: Bo Shen Date: Wed, 15 Aug 2012 18:44:27 +0000 (+0000) Subject: arm : at91sam9x5 : fix a small bug for NAND X-Git-Tag: v2012.10-rc1~121 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4ed9c886033b9fb64cba3d0ed84bdda927459c5a;p=oweals%2Fu-boot.git 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 Signed-off-by: Andreas Bießmann --- diff --git a/board/atmel/at91sam9x5ek/at91sam9x5ek.c b/board/atmel/at91sam9x5ek/at91sam9x5ek.c index 17db0fd513..88b3478aaf 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 */