Other Parts Discussed in Thread: OMAPL138
Hi,
We are using OMAPl138 and trying to establish communication with the NOR Flash MT28EW01GABA via EMIF interface.
For EMIF we are just did the following configurations alone and remaining registers we did not write anything.
/****Code for EMIF configurations. ***/
unsigned int ce2cfgr = 0; // CE2 - Connected to NOR flash
ce2cfgr = *((unsigned int *) (0x68000000 + 0x0010));
ce2cfgr |= 0x1; /*Set 16 bit NOR Flash Data bus width*/
*((unsigned int *) (EMIF_CTL_BASE + EMIF_CTL_CE2CFG)) = ce2cfgr.
For NOR flash we are using the drivers provided by the MICRON as it is. The only change we did was to map the base register address.
#define FLASH_BASE_ADDRESS 0x60000000
As mentioned by the MICRON, before start using the flash, we need to call FlashInit function to read the CFI details from the flash.
When we are doing, we could see the there is some changes in data in the EMIF memory locations. But this data looks like not valid data.
Kindly provide solution for nor flash bring up.
Thanks,
Hariprasanth AFlash_driver.txt