soc/intel/alderlake/acpi.c: Don't look up coreboot CPU index
[coreboot.git] / src / soc / qualcomm / common / mmu.c
blob0f12555a7f4b9007e8f0c6a50b35fbee3c921a3c
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <arch/mmu.h>
4 #include <soc/mmu.h>
5 #include <soc/mmu_common.h>
6 #include <soc/symbols_common.h>
8 __weak bool soc_modem_carve_out(void **start, void **end) { return false; }
10 void qc_mmu_dram_config_post_dram_init(void *ddr_base, size_t ddr_size)
12 void *start = NULL;
13 void *end = NULL;
15 if (!soc_modem_carve_out(&start, &end)) {
16 mmu_config_range((void *)ddr_base, ddr_size, CACHED_RAM);
17 } else {
18 mmu_config_range(ddr_base, start - ddr_base, CACHED_RAM);
19 mmu_config_range(end, ddr_base + ddr_size - end, CACHED_RAM);
22 mmu_config_range((void *)_aop_code_ram, REGION_SIZE(aop_code_ram),
23 CACHED_RAM);
24 mmu_config_range((void *)_aop_data_ram, REGION_SIZE(aop_data_ram),
25 CACHED_RAM);