summaryrefslogtreecommitdiff
path: root/src/mainboard/arm/rdn2/cbmem.c
blob: a8ad03399ca6f69aa6d01a6392b1d5865e67529c (plain)
1
2
3
4
5
6
7
8
9
10
11
/* SPDX-License-Identifier: GPL-2.0-or-later */

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

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