From: Tom Rini Date: Fri, 19 Jul 2013 08:13:38 -0400 Subject: [U-Boot] [PATCH] arm: at91sam9n12: change EBI IO to high drive mode In-Reply-To: <1374052458-3326-1-git-send-email-voice.shen@atmel.com> References: <1374052458-3326-1-git-send-email-voice.shen@atmel.com> Message-ID: <20130719121338.GE18359@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Jul 17, 2013 at 05:14:17PM +0800, Bo Shen wrote: > 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 > --- > 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); > So, the change is small and isolated, so I'm OK applying it to master directly, once we've got acks. But it sounds like there's a question of "why does this fix the problem" and "how does the problem even happen?". -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: