Commit b899fa39019c8fecb508f747525dd8c22622e804

Authored by Bo Shen
Committed by Tom Rini
1 parent fdf86c202c

arm: at91sam9n12: change EBI IO to high drive mode

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

board/atmel/at91sam9n12ek/at91sam9n12ek.c
... ... @@ -59,7 +59,7 @@
59 59 /* Configure databus */
60 60 csa &= ~AT91_MATRIX_NFD0_ON_D16; /* nandflash connect to D0~D15 */
61 61 /* Configure IO drive */
62   - csa &= ~AT91_MATRIX_EBI_EBI_IOSR_NORMAL;
  62 + csa |= AT91_MATRIX_EBI_EBI_IOSR_NORMAL;
63 63  
64 64 writel(csa, &matrix->ebicsa);
65 65