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