blob: e4d21ccb806f30e674b6f1befd95183b39f17a97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* SPDX-License-Identifier: GPL-2.0-only */
#include <cbmem.h>
#include <symbols.h>
#include <ramdetect.h>
uintptr_t cbmem_top_chipset(void)
{
//TODO get memory range from QEMUs FDT
size_t dram_mb_detected = probe_ramsize((uintptr_t)_dram, CONFIG_DRAM_SIZE_MB);
return (uintptr_t)_dram + dram_mb_detected * MiB;
}
|