treewide: replace GPLv2 long form headers with SPDX header
[coreboot.git] / src / soc / qualcomm / sc7180 / mmu.c
blob6b5c794c61220090437dcdde5e9082031bf90a60
1 /* This file is part of the coreboot project. */
2 /* SPDX-License-Identifier: GPL-2.0-only */
4 #include <symbols.h>
5 #include <arch/mmu.h>
6 #include <arch/cache.h>
7 #include <soc/mmu.h>
8 #include <soc/mmu_common.h>
9 #include <soc/symbols.h>
11 void sc7180_mmu_init(void)
13 mmu_init();
15 mmu_config_range((void *)(4 * KiB), ((4UL * GiB) - (4 * KiB)), DEV_MEM);
16 mmu_config_range((void *)_ssram, REGION_SIZE(ssram), CACHED_RAM);
17 mmu_config_range((void *)_bsram, REGION_SIZE(bsram), CACHED_RAM);
18 mmu_config_range((void *)_dma_coherent, REGION_SIZE(dma_coherent),
19 UNCACHED_RAM);
21 mmu_enable();
24 void soc_mmu_dram_config_post_dram_init(void)
26 mmu_config_range((void *)_aop, REGION_SIZE(aop), CACHED_RAM);