]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: at91sam9n12: change EBI IO to high drive mode
authorBo Shen <voice.shen@atmel.com>
Wed, 17 Jul 2013 09:14:17 +0000 (17:14 +0800)
committerTom Rini <trini@ti.com>
Mon, 22 Jul 2013 12:20:14 +0000 (08:20 -0400)
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>
Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>
board/atmel/at91sam9n12ek/at91sam9n12ek.c

index 3013a42a2ecf2123d0f8e963a342fdd8524d68c0..66c4c1f0059ffed01a5f53d3651841ec53838ee1 100644 (file)
@@ -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);