Hi,
I am trying to figure out the base address for NAND flash device on our DM365 based board. The information is needed for CONFIG_SYS_NAND_BASE_LIST in U-Boot compilation.
In our board, the NAND flash chip enable pin is connected to AM_CE1 pin.
According to "2.6 Memory Map Summary" in DM365 datasheet (SPRS457C), the AEMIF Data (CE1) is mapped to 0x04000000, while CE0 is mapped to 0x02000000.
However, as I look at the davinci_dm365_evm.h in both u-boot and Linux kernel drivers, the base address for CE1 is CONFIG_SYS_NAND_BASE+0x4000, which is 0x02004000.
That confused me: how DM365 chip is selecting CE1 and CE0 pins? Are they selected based on the address value given, or based on the value set on NANDFCR register?
What base address should I used for AM_CE1 (or CS3 space in AEMIF SPRUFI1C document)?
Thanks
Alan