Hi,TI
before the ROM code copy the MLO to on-chip RAM,does it need to initializate the ddr firstly?In my opinion,the MLO is run on the on-chip RAM,and it maybe not need ddr support.but when I delete the config_ti814x_ddr() in board/ti/ti8148/evm.c,the MLO does not run.What is the reason about that?
/*
* early system init of muxing and clocks.
*/
void s_init(u32 in_ddr)
{
/* TODO: Revisit enabling of I/D-cache in 1st stage */
#if 0
icache_enable();
dcache_enable();
#endif
/*
* Disable Write Allocate on miss to avoid starvation of other masters
* (than A8).
*
* Ref DM814x Erratum: TODO
*/
l2_disable_wa();
/* Can be removed as A8 comes up with L2 enabled */
l2_cache_enable();
unlock_pll_control_mmr();
/* Setup the PLLs and the clocks for the peripherals */
prcm_init(in_ddr);
#if defined(CONFIG_TI814X_CONFIG_DDR)
if (!in_ddr)
config_ti814x_ddr(); /* Do DDR settings */
#endif
}
Thank you!
vefone.