summaryrefslogtreecommitdiffstats
path: root/src/mainboard/emulation/qemu-armv7/cbmem.c
blob: 157e4439102e97d2f603e832f7e85ed786521c02 (plain)
1
2
3
4
5
6
7
8
9
10
/* SPDX-License-Identifier: GPL-2.0-only */

#include <cbmem.h>
#include <symbols.h>
#include <ramdetect.h>

void *cbmem_top_chipset(void)
{
	return _dram + (probe_ramsize((uintptr_t)_dram, CONFIG_DRAM_SIZE_MB) * MiB);
}