diff mbox

[U-Boot,3/3] arm : at91sam9x5 : fix a small bug for NAND

Message ID 1345092267-16077-4-git-send-email-voice.shen@atmel.com
State Accepted, archived
Commit 4ed9c886033b9fb64cba3d0ed84bdda927459c5a
Delegated to: Andreas Bießmann
Headers show

Commit Message

Bo Shen Aug. 16, 2012, 4:44 a.m. UTC
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>
---
 board/atmel/at91sam9x5ek/at91sam9x5ek.c |    2 ++
 1 file changed, 2 insertions(+)

Comments

Andreas Bießmann Aug. 17, 2012, 9:26 a.m. UTC | #1
Dear Bo Shen,

On 16.08.2012 06:44, Bo Shen wrote:
> 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>
> ---

applied to u-boot-atmel/master, thnaks!

Best regards

Andreas Bießmann
diff mbox

Patch

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