ec/google/chromeec: Define ACPI_NOTIFY_CROS_EC_MKBP constant
[coreboot.git] / src / soc / ti / am335x / bootblock.c
blob11bc4593e193bbf168e3cf04acb3b6b0cbfa2a3e
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <types.h>
5 #include <arch/cache.h>
6 #include <bootblock_common.h>
7 #include <symbols.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)
17 mmu_init();
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,
23 DCACHE_WRITEBACK);
25 mmu_config_range(DRAM_START, DRAM_SIZE, DCACHE_WRITEBACK);
27 dcache_mmu_enable();