blob: 0f12555a7f4b9007e8f0c6a50b35fbee3c921a3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* SPDX-License-Identifier: GPL-2.0-only */
#include <arch/mmu.h>
#include <soc/mmu.h>
#include <soc/mmu_common.h>
#include <soc/symbols_common.h>
__weak bool soc_modem_carve_out(void **start, void **end) { return false; }
void qc_mmu_dram_config_post_dram_init(void *ddr_base, size_t ddr_size)
{
void *start = NULL;
void *end = NULL;
if (!soc_modem_carve_out(&start, &end)) {
mmu_config_range((void *)ddr_base, ddr_size, CACHED_RAM);
} else {
mmu_config_range(ddr_base, start - ddr_base, CACHED_RAM);
mmu_config_range(end, ddr_base + ddr_size - end, CACHED_RAM);
}
mmu_config_range((void *)_aop_code_ram, REGION_SIZE(aop_code_ram),
CACHED_RAM);
mmu_config_range((void *)_aop_data_ram, REGION_SIZE(aop_data_ram),
CACHED_RAM);
}
|