Angel Pons | 585495e | 2020-04-03 01:21:38 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2 | /* This file is part of the coreboot project. */ | ||||
Kyösti Mälkki | a38d1b2 | 2014-11-10 15:08:47 +0200 | [diff] [blame] | 3 | |
Kyösti Mälkki | a38d1b2 | 2014-11-10 15:08:47 +0200 | [diff] [blame] | 4 | #include <cbmem.h> |
Julius Werner | ec5e5e0 | 2014-08-20 15:29:56 -0700 | [diff] [blame] | 5 | #include <symbols.h> |
Patrick Rudolph | bd4bcab | 2019-06-30 22:12:15 +0200 | [diff] [blame] | 6 | #include <ramdetect.h> |
Kyösti Mälkki | a38d1b2 | 2014-11-10 15:08:47 +0200 | [diff] [blame] | 7 | |
Arthur Heymans | 340e4b8 | 2019-10-23 17:25:58 +0200 | [diff] [blame] | 8 | void *cbmem_top_chipset(void) |
Kyösti Mälkki | a38d1b2 | 2014-11-10 15:08:47 +0200 | [diff] [blame] | 9 | { |
Patrick Rudolph | bd4bcab | 2019-06-30 22:12:15 +0200 | [diff] [blame] | 10 | return _dram + (probe_ramsize((uintptr_t)_dram, CONFIG_DRAM_SIZE_MB) * MiB); |
Kyösti Mälkki | a38d1b2 | 2014-11-10 15:08:47 +0200 | [diff] [blame] | 11 | } |