Debian Codegraph @

src/soc/qualcomm/sc7280/carve_out.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <arch/stages.h>
4 #include <soc/mmu_common.h>
5 #include <soc/symbols_common.h>
6 #include <device/mmio.h>
7
8 #define MODEM_ONLY 0x004c5445
9
10 bool soc_modem_carve_out(void **start, void **end)
11 {
12 uint32_t modem_id = read32(_modem_id);
13
14 switch (modem_id) {
15 case MODEM_ONLY:
16 *start = _dram_modem;
17 *end = _edram_modem;
18 return true;
19 default:
20 return false;
21 }
22 }