mb/system76/cml-u/dt: Make use of chipset devicetree
[coreboot.git] / src / soc / mediatek / common / cbmem.c
blob0ca9e6b8022d3d20ebf6fb426343650a3a964ada
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <cbmem.h>
4 #include <commonlib/helpers.h>
5 #include <symbols.h>
6 #include <soc/emi.h>
8 #define MAX_DRAM_ADDRESS ((uintptr_t)4 * GiB)
10 uintptr_t cbmem_top_chipset(void)
12 return MIN((uintptr_t)_dram + sdram_size(), MAX_DRAM_ADDRESS);