blob: 157e4439102e97d2f603e832f7e85ed786521c02 [file] [log] [blame]
Angel Ponsdd9c09d2020-04-04 18:51:34 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Ronald G. Minniche0e784a2014-11-26 19:25:47 +00002
3#include <cbmem.h>
Patrick Rudolphbd4bcab2019-06-30 22:12:15 +02004#include <symbols.h>
5#include <ramdetect.h>
Ronald G. Minniche0e784a2014-11-26 19:25:47 +00006
Arthur Heymans340e4b82019-10-23 17:25:58 +02007void *cbmem_top_chipset(void)
Ronald G. Minniche0e784a2014-11-26 19:25:47 +00008{
Patrick Rudolphbd4bcab2019-06-30 22:12:15 +02009 return _dram + (probe_ramsize((uintptr_t)_dram, CONFIG_DRAM_SIZE_MB) * MiB);
Ronald G. Minniche0e784a2014-11-26 19:25:47 +000010}