summaryrefslogtreecommitdiff
path: root/src/soc/ibm/power9/cbmem.c
blob: 9543c4584809886c01b728caf8f609066b98398f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: GPL-2.0-only */

#include <cbmem.h>

uintptr_t cbmem_top_chipset(void)
{
	/*
	 * Smallest reported to be working (but not officially supported) DIMM is
	 * 4GB. This means that we always have at least as much available. Last
	 * 256MB are reserved for hostboot/coreboot (OCC and HOMER images).
	 *
	 * TODO: implement this properly after RAM is detected.
	 */
	return 4ull * GiB - 256 * MiB;
}