1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <arch/cache.h>
4 #include <bootblock_common.h>
6 #include <soc/wakeup.h>
9 /* convenient shorthand (in MB) */
10 #define SRAM_START (EXYNOS5_SRAM_BASE >> 20)
12 #define SRAM_END (SRAM_START + SRAM_SIZE) /* plus one... */
14 void bootblock_soc_init(void)
16 if (get_wakeup_state() == WAKEUP_DIRECT
) {
21 /* set up dcache and MMU */
23 mmu_disable_range(0, SRAM_START
);
24 mmu_config_range(SRAM_START
, SRAM_SIZE
, DCACHE_WRITEBACK
);
25 mmu_config_range(SRAM_END
, 4096 - SRAM_END
, DCACHE_OFF
);
28 /* For most ARM systems, we have to initialize firmware media source
29 * (ex, SPI, SD/MMC, or eMMC) now; but for Exynos platform, that is
30 * already handled by iROM so there's no need to setup again.