diff options
author | Ravi Kumar Bokka <rbokka@codeaurora.org> | 2021-10-15 23:02:41 +0530 |
---|---|---|
committer | Shelley Chen <shchen@google.com> | 2021-10-25 21:14:22 +0000 |
commit | 64f7eaafa7ca8e5908e6e1dd1be6f6df6cae06d9 (patch) | |
tree | 406654dd76cc68875f423e4adaf400269a415c34 /src/soc/qualcomm/common/mmu.c | |
parent | f8e4ba0085cb8f0d54236825abe0487c733bb25d (diff) |
soc/qualcomm: Commonize AOP firmware support
Move AOP firmware support from qualcomm/sc7180 into qualcomm/common
BUG=b:182963902
TEST=Validated on qualcomm sc7180 development board
Change-Id: I90b0f48e15df390970e027bff2065b7a89b14cec
Signed-off-by: Ravi Kumar Bokka <rbokka@codeaurora.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49767
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shelley Chen <shchen@google.com>
Diffstat (limited to 'src/soc/qualcomm/common/mmu.c')
-rw-r--r-- | src/soc/qualcomm/common/mmu.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/soc/qualcomm/common/mmu.c b/src/soc/qualcomm/common/mmu.c index ba1173edf9..0f12555a7f 100644 --- a/src/soc/qualcomm/common/mmu.c +++ b/src/soc/qualcomm/common/mmu.c @@ -3,9 +3,9 @@ #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; } -__weak void soc_mmu_dram_config_post_dram_init(void) { /* no-op */ } void qc_mmu_dram_config_post_dram_init(void *ddr_base, size_t ddr_size) { @@ -18,5 +18,9 @@ void qc_mmu_dram_config_post_dram_init(void *ddr_base, size_t ddr_size) mmu_config_range(ddr_base, start - ddr_base, CACHED_RAM); mmu_config_range(end, ddr_base + ddr_size - end, CACHED_RAM); } - soc_mmu_dram_config_post_dram_init(); + + 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); } |