public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arm: at91sam9n12: change EBI IO to high drive mode
@ 2013-07-17  9:14 Bo Shen
  2013-07-17 10:10 ` Albert ARIBAUD
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Bo Shen @ 2013-07-17  9:14 UTC (permalink / raw)
  To: u-boot

As both the DDR SDRAM and NAND flash connect to EBI on at91sam9n12
and share the lower 8 bits data line. If use low drive of the data
line, it will cause DDR data access corrupt in lower address, so
change the data line to high drive mode

This will fix the Linux kernel boot issue when use Lower address

Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
 board/atmel/at91sam9n12ek/at91sam9n12ek.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/atmel/at91sam9n12ek/at91sam9n12ek.c b/board/atmel/at91sam9n12ek/at91sam9n12ek.c
index 3013a42..66c4c1f 100644
--- a/board/atmel/at91sam9n12ek/at91sam9n12ek.c
+++ b/board/atmel/at91sam9n12ek/at91sam9n12ek.c
@@ -59,7 +59,7 @@ static void at91sam9n12ek_nand_hw_init(void)
 	/* Configure databus */
 	csa &= ~AT91_MATRIX_NFD0_ON_D16; /* nandflash connect to D0~D15 */
 	/* Configure IO drive */
-	csa &= ~AT91_MATRIX_EBI_EBI_IOSR_NORMAL;
+	csa |= AT91_MATRIX_EBI_EBI_IOSR_NORMAL;
 
 	writel(csa, &matrix->ebicsa);
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-07-22 14:11 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-17  9:14 [U-Boot] [PATCH] arm: at91sam9n12: change EBI IO to high drive mode Bo Shen
2013-07-17 10:10 ` Albert ARIBAUD
2013-07-17 10:27   ` Bo Shen
2013-07-17 10:42     ` Albert ARIBAUD
2013-07-17 11:27       ` Michael Cashwell
2013-07-17 13:05         ` Albert ARIBAUD
2013-07-17 17:05           ` Michael Cashwell
2013-07-19  1:51       ` Bo Shen
2013-07-19  6:54         ` Albert ARIBAUD
2013-07-19 12:13 ` Tom Rini
2013-07-20 23:02   ` Andreas Bießmann
2013-07-22  1:59     ` Bo Shen
2013-07-22 14:11 ` [U-Boot] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox