Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit a9b3021e authored by Haojian Zhuang's avatar Haojian Zhuang
Browse files

hikey: clean dcache for SRAM after initialized


Although SRAM is initialized, DCACHE should be cleaned too.
Because MCU is a parrallel core to access SRAM. We need to make
sure that initialized value is really written to SRAM before
MCU using it.

Signed-off-by: default avatarHaojian Zhuang <haojian.zhuang@linaro.org>
parent 103c213c
Branches
Tags
No related merge requests found
......@@ -276,6 +276,7 @@ void bl2_early_platform_setup(meminfo_t *mem_layout)
/* Clear SRAM since it'll be used by MCU right now. */
memset((void *)SRAM_BASE, 0, SRAM_SIZE);
clean_dcache_range(SRAM_BASE, SRAM_SIZE);
sp804_timer_init(SP804_TIMER0_BASE, 10, 192);
dsb();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment