Hi, I am working on LS1023A's peripheral IFC (Integrated Flash Controller)
Question: How can be found the SRAM base address used by the IFC for the NAND Flash device?
I am interfacing MT29F8G08ABBCAH4 with IFC.
解決済! 解決策の投稿を見る。
Thanks @yipingwang
Yes, correct.
The base address of the SRAM buffer is mapped by the base address of the corresponding NAND FCM bank (chip-select) by setting IFC_CSPRn[BA].
You could refer to u-boot definition include/configs/ls1043ardb.h.
#define CONFIG_SYS_NAND_BASE 0x7e800000
#define CONFIG_SYS_NAND_BASE_PHYS CONFIG_SYS_NAND_BASE
#define CONFIG_SYS_NAND_CSPR_EXT (0x0)
#define CONFIG_SYS_NAND_CSPR (CSPR_PHYS_ADDR(CONFIG_SYS_NAND_BASE_PHYS) \
| CSPR_PORT_SIZE_8 \
| CSPR_MSEL_NAND \
| CSPR_V)
#define CONFIG_SYS_NAND_AMASK IFC_AMASK(64*1024)
#define CONFIG_SYS_CSPR1_EXT CONFIG_SYS_NAND_CSPR_EXT
#define CONFIG_SYS_CSPR1 CONFIG_SYS_NAND_CSPR
#define CONFIG_SYS_AMASK1 CONFIG_SYS_NAND_AMASK
#define CONFIG_SYS_CSOR1 CONFIG_SYS_NAND_CSOR