repo.or.cz
/
coreboot.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
mb/system76/cml-u/dt: Make use of chipset devicetree
[coreboot.git]
/
src
/
soc
/
mediatek
/
common
/
cbmem.c
blob
0ca9e6b8022d3d20ebf6fb426343650a3a964ada
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <cbmem.h>
4
#include <commonlib/helpers.h>
5
#include <symbols.h>
6
#include <soc/emi.h>
7
8
#define MAX_DRAM_ADDRESS ((uintptr_t)4 * GiB)
9
10
uintptr_t
cbmem_top_chipset
(
void
)
11
{
12
return
MIN
((
uintptr_t
)
_dram
+
sdram_size
(),
MAX_DRAM_ADDRESS
);
13
}