Skip to content

Commit

Permalink
arm: at91sam9n12: change EBI IO to high drive mode
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Andreas Bießmann <[email protected]>
  • Loading branch information
Bo Shen authored and trini committed Jul 22, 2013
1 parent fdf86c2 commit b899fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/atmel/at91sam9n12ek/at91sam9n12ek.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b899fa3

Please sign in to comment.