Hi,
There are two gpmc device on our board.
CS0 - Nand flash
CS3 - Non-multiplexed attached device(8-bit)
In TRM, GPMC_CONFIG7[5:0] corresponds to A29, A28, A27, A26, A25, and A24
nand flash CS0 GPMC_CONFIG[5:0] = 8 and non-multiplexed attached device CS3 GPMC_CONFIG[5:0] = 1, So the base address will be 0x8000000 in nand flash and 0x1000000 in non-multiplexed attached device...
In TRM,
The GPMC 512 Mbyte address space can be divided into a maximum of eight chip-select regions with
programmable base address and programmable CS size. The CS size is programmable from 16 Mbytes
to 256 Mbytes (must be a power-of-2) and is defined by the mask field. Attached memory smaller than the
programmed CS region size is accessed through the entire CS region (aliasing).
1) Does it mean maximum capacity of the attached device up to 256Mbytes and determined in GPMC_CONFIG7_i[7-0] BASEADDRESS bit field and GPMC_CONFIG7_i[11-8] MASKADDRESS bit field ?
2) How about nand flash, is it differenet? GPMC_CONFIG7 = 0xF48 in nand flash CS0, it means base address 0x80000000 and CS size 16Mbytes but our nand flash is 256Mbytes?
3) GPMC address space L3 mapping in 0x00000000 ~ 0x1FFFFFFF, Could I use 0x00000000 as start address for the attached device?
Sorry for many questions, any helps will be appreciate!
thank you
BR,
Steven