| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <cbmem.h> |
| 4 | |
| 5 | uintptr_t cbmem_top_chipset(void) |
| 6 | { |
| 7 | /* |
| 8 | * Smallest reported to be working (but not officially supported) DIMM is |
| 9 | * 4GB. This means that we always have at least as much available. Last |
| 10 | * 256MB are reserved for hostboot/coreboot (OCC and HOMER images). |
| 11 | * |
| 12 | * TODO: implement this properly after RAM is detected. |
| 13 | */ |
| 14 | return 4ull * GiB - 256 * MiB; |
| 15 | } |