arm: shield executing arm_init_before_mmu in spl

The device do not initialize the cache and mmu in bootrom and ddr,
so the spl do not need to clear the cache and disable mmu in function
arm_init_before_mmu.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: If7b19fa762c4803dcfc58c7b16fd8236a2262729
This commit is contained in:
Jason Zhu 2020-04-23 15:35:34 +08:00 committed by Jianhong Chen
parent dc33c23192
commit 5c8c82be5c
1 changed files with 5 additions and 0 deletions

View File

@ -110,7 +110,12 @@ static inline void mmu_setup(void)
int i;
u32 reg;
#ifndef CONFIG_SPL_BUILD
/* bootrom and ddr didn't initial dcache,
* skip this to save boot time.
*/
arm_init_before_mmu();
#endif
/* Set up an identity-mapping for all 4GB, rw for everyone */
for (i = 0; i < ((4096ULL * 1024 * 1024) >> MMU_SECTION_SHIFT); i++)
set_section_dcache(i, DCACHE_OFF);