coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cbmem.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
cbmem.h
>
4
#include <soc/soc_services.h>
5
6
static
int
cbmem_backing_store_ready
;
7
8
void
ipq_cbmem_backing_store_ready
(
void
)
9
{
10
cbmem_backing_store_ready
= 1;
11
}
12
13
void
*
cbmem_top_chipset
(
void
)
14
{
15
/*
16
* In romstage, make sure that cbmem backing store is ready before
17
* returning pointer to cbmem top. Otherwise, it could lead to issues
18
* with components that utilize cbmem in romstage (e.g. vboot_locator
19
* for loading ipq blobs before DRAM is initialized).
20
*/
21
if
(
cbmem_backing_store_ready
== 0)
22
return
NULL
;
23
24
return
_memlayout_cbmem_top
;
25
}
cbmem.h
cbmem_top_chipset
void * cbmem_top_chipset(void)
Definition:
cbmem.c:6
_memlayout_cbmem_top
u8 _memlayout_cbmem_top[]
ipq_cbmem_backing_store_ready
void ipq_cbmem_backing_store_ready(void)
Definition:
cbmem.c:8
cbmem_backing_store_ready
static int cbmem_backing_store_ready
Definition:
cbmem.c:6
NULL
#define NULL
Definition:
stddef.h:19
src
soc
qualcomm
ipq40xx
cbmem.c
Generated by
1.9.1