hello experts
CPU is P1020/P1011 and a borad was used a few years without problems
kernel and u-boot are from SDK 1.8
this time i have to install 1GB nand so i plan to use MT29F8G08A instead of MT29F1G08 which was installed on the board
i read a user guide ann it said it can interface a small and a large nand , and the large nand is 2K-page device
how could i interface 4K-page nand with FCM ?
thank you for your advices
In u-boot source code include/configs/p1_p2_rdb_pc.h, please configure ELBC BR and OR as the following.
#define CONFIG_SYS_NAND_BR_PRELIM (BR_PHYS_ADDR(CONFIG_SYS_NAND_BASE_PHYS) \
| (2<<BR_DECC_SHIFT) /* Use HW ECC */ \
| BR_PS_8 /* Port Size = 8 bit */ \
| BR_MS_FCM /* MSEL = FCM */ \
| BR_V) /* valid */
#if defined(CONFIG_P1020RDB_PD)
#define CONFIG_SYS_NAND_OR_PRELIM (0xFFFC0000 /* length 256K */ \
| OR_FCM_PGS /* Large Page*/ \
| OR_FCM_CSCT \
| OR_FCM_CST \
| OR_FCM_CHT \
| OR_FCM_SCY_1 \
| OR_FCM_TRLX \
| OR_FCM_EHTR)
#else