coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
carve_out.c
Go to the documentation of this file.
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
}
read32
static uint32_t read32(const void *addr)
Definition:
mmio.h:22
mmio.h
mmu_common.h
soc_modem_carve_out
bool soc_modem_carve_out(void **start, void **end)
Definition:
carve_out.c:11
MODEM_ONLY
#define MODEM_ONLY
Definition:
carve_out.c:8
uint32_t
unsigned int uint32_t
Definition:
stdint.h:14
symbols_common.h
src
soc
qualcomm
sc7280
carve_out.c
Generated by
1.9.1