feat(rcar3): add cache operations to boot process

Add cache operations because BL2 disabled MMU at the end of the boot
process, but did not clean/invalidate for the cache used by MMU.

Signed-off-by: Toshiyuki Ogasahara <toshiyuki.ogasahara.bo@hitachi.com>
Signed-off-by: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com>
Change-Id: Id4070b46103ca2b50788b3a99f6961a35df24418
This commit is contained in:
Toshiyuki Ogasahara 2021-07-12 18:46:47 +09:00 committed by Marek Vasut
parent 5e8c2d8e23
commit 7e06b06753

View file

@ -370,6 +370,14 @@ mmu:
/* Disable data cache (clean and invalidate) */
disable_mmu_el3();
#if RCAR_BL2_DCACHE == 1
dcsw_op_all(DCCISW);
#endif
tlbialle3();
disable_mmu_icache_el3();
plat_invalidate_icache();
dsbsy();
isb();
}
static uint32_t is_ddr_backup_mode(void)