blob: 157e4439102e97d2f603e832f7e85ed786521c02 [file] [log] [blame]
Angel Pons585495e2020-04-03 01:21:38 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Kyösti Mälkkia38d1b22014-11-10 15:08:47 +02002
Kyösti Mälkkia38d1b22014-11-10 15:08:47 +02003#include <cbmem.h>
Julius Wernerec5e5e02014-08-20 15:29:56 -07004#include <symbols.h>
Patrick Rudolphbd4bcab2019-06-30 22:12:15 +02005#include <ramdetect.h>
Kyösti Mälkkia38d1b22014-11-10 15:08:47 +02006
Arthur Heymans340e4b82019-10-23 17:25:58 +02007void *cbmem_top_chipset(void)
Kyösti Mälkkia38d1b22014-11-10 15:08:47 +02008{
Patrick Rudolphbd4bcab2019-06-30 22:12:15 +02009 return _dram + (probe_ramsize((uintptr_t)_dram, CONFIG_DRAM_SIZE_MB) * MiB);
Kyösti Mälkkia38d1b22014-11-10 15:08:47 +020010}