I have a board similar to the bf537-stamp board. There are two NAND flashes connected through a CPLD. I want to setup MTD partitions on both. So far I have only managed to do that on one of them.
#define CONFIG_SYS_NAND_BASE 0x20300080, 0x20300100
#define CONFIG_SYS_MAX_NAND_DEVICE 2
#define CONFIG_JFFS2_DEV "nand0"
#define MTDIDS_DEFAULT "nand0=gen_nand.0"
#define MTDPARTS_DEFAULT "mtdparts=gen_nand.0:5M(kernel),-(filesystem0)"
"filesystem0" holds a jffs2 partition
Now, how do I add the other flash? I guess it will be nand1=gen_nand.1, but how will it fit into the above defines?