Now , I want to access the Nand flash on DM8148 EVM.
I download the MT29F2G16AADWP:D datasheet and read through it.
I find that there are too many timing parameters need to be set from GPMC_CONFIG1_0 to CPMC_CONFIG7_0.
my configuration as follows:
gpmc_config1_0 = 0x1800; // nand flash, 16 bit, cs0
gpmc_config2_0 = (2<<0) | (6<<8) | (6<<16); // CSONTIME, CSExtraDelay, CSRDOFFTIME, CSWROFFTIME
gpmc_config3_0 = (1<<0)|(2<<8) | (2<<16)|(4<<16); // ADVONTIME, ADVExtraDelay, ADVRDOFFTIME, ADVWROFFTIME
gpmc_config4_0 = (1<<0)|(2<<8)|(2<<16) | (3<<24); // OEONTIME, OEEXTRADELAY, OEOFFTIME, WEONTIME, WEEXTRADELAY, WEOFFTIME
gpmc_config5_0 = (3<<0) | (3<<8) | (1<<16) ; // RDCYCLETIME, WRCYCLETIME, RDACCESSTIME
gpmc_config6_0 = 1<<24; // WRACCESSTIME
because I do not quite clear about CSExtraDelay, CSRDOFFTIME, CSWROFFTIME, ADVRDOFFTIME, ADWROFFTIME, OEONTIME, OEEXTRADELAY, OEOFFTIME and WEOFFTIME, so i can not read id from nand flash.
CSOFFTIME: CS#de-assertiontime from startcycletime for write accesses
what does mean by "write accesses" in last sentence? write page or WE#, or something else ?
Can anyone give me a complete right timing configuration ?