blob: 2ecca6555155cdd744330a68cc029a05ca6e16e4 [file] [log] [blame]
Kyösti Mälkkia38d1b22014-11-10 15:08:47 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
Kyösti Mälkkia38d1b22014-11-10 15:08:47 +020012 */
13
14#include <stddef.h>
15#include <cbmem.h>
Julius Wernerec5e5e02014-08-20 15:29:56 -070016#include <symbols.h>
Kyösti Mälkkia38d1b22014-11-10 15:08:47 +020017
Arthur Heymans340e4b82019-10-23 17:25:58 +020018void *cbmem_top_chipset(void)
Kyösti Mälkkia38d1b22014-11-10 15:08:47 +020019{
Julius Wernerec5e5e02014-08-20 15:29:56 -070020 return _dram + (CONFIG_DRAM_SIZE_MB << 20);
Kyösti Mälkkia38d1b22014-11-10 15:08:47 +020021}