Elyes HAOUAS | f50b662 | 2020-07-19 14:00:43 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Asami Doi | f795242 | 2019-06-11 16:01:31 +0900 | [diff] [blame] | 2 | |
3 | #include <cbmem.h> | ||||
4 | #include <ramdetect.h> | ||||
5 | #include <symbols.h> | ||||
6 | |||||
Arthur Heymans | 340e4b8 | 2019-10-23 17:25:58 +0200 | [diff] [blame] | 7 | void *cbmem_top_chipset(void) |
Asami Doi | f795242 | 2019-06-11 16:01:31 +0900 | [diff] [blame] | 8 | { |
9 | return _dram + (probe_ramsize((uintptr_t)_dram, CONFIG_DRAM_SIZE_MB) * MiB); | ||||
10 | } |