blob: 6b6ac720cf6b227779ad3a4425a79f5036914288 [file] [log] [blame]
Elyes HAOUASf50b6622020-07-19 14:00:43 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Asami Doif7952422019-06-11 16:01:31 +09002
3#include <cbmem.h>
4#include <ramdetect.h>
5#include <symbols.h>
6
Arthur Heymans340e4b82019-10-23 17:25:58 +02007void *cbmem_top_chipset(void)
Asami Doif7952422019-06-11 16:01:31 +09008{
9 return _dram + (probe_ramsize((uintptr_t)_dram, CONFIG_DRAM_SIZE_MB) * MiB);
10}