1 /* SPDX-License-Identifier: GPL-2.0-only */
5 #include <arch/cache.h>
6 #include <bootblock_common.h>
9 #define SRAM_START ((uintptr_t)_sram / MiB)
10 #define SRAM_END (DIV_ROUND_UP((uintptr_t)_esram, MiB))
12 #define DRAM_START ((uintptr_t)_dram / MiB)
13 #define DRAM_SIZE (CONFIG_DRAM_SIZE_MB)
15 void bootblock_soc_init(void)
19 /* Map everything strongly ordered by default */
20 mmu_config_range(0, 4096, DCACHE_OFF
);
22 mmu_config_range(SRAM_START
, SRAM_END
- SRAM_START
,
25 mmu_config_range(DRAM_START
, DRAM_SIZE
, DCACHE_WRITEBACK
);