Hi,
Can anyone check if the following is correct and sufficient for setting up the DSP on OMAP-L138 to cache the DDR2?
/* setup MAR bits to enable cache for DDR2 */
CacheEnableMAR((unsigned int)DDR2_ADDR, DDR2_SIZE);
/* Enable Cache */
CacheEnable(L1PCFG_L1PMODE_32K | L1DCFG_L1DMODE_32K | L2CFG_L2MODE_256K);
Do I have to add this line? What is the purpose of it?
CacheWBInv((unsigned int)DDR2_ADDR, DDR2_SIZE);
If I want to use only half of the L2 as cache? Do I just do this? And then the top half of the L2 (from 0x11820000) become RAM?
/* setup MAR bits to enable cache for DDR2 */
CacheEnableMAR((unsigned int)DDR2_ADDR, DDR2_SIZE);
/* Enable Cache */
CacheEnable(L1PCFG_L1PMODE_32K | L1DCFG_L1DMODE_32K | L2CFG_L2MODE_128K);
I wish the StarterWare documentation is more detailed and complete.
Thanks