blob: 15c20f8de426ffabf96952415ab25152dcd960a5 [file] [log] [blame]
Angel Pons585495e2020-04-03 01:21:38 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Ronald G. Minnich98312442016-02-12 22:37:48 +00002
3#include <cbmem.h>
4
Arthur Heymans340e4b82019-10-23 17:25:58 +02005void *cbmem_top_chipset(void)
Ronald G. Minnich98312442016-02-12 22:37:48 +00006{
7 /* Top of cbmem is at lowest usable DRAM address below 4GiB. */
8 /* For now, last 1M of 4G */
9 void *ptr = (void *) ((1ULL << 32) - 1048576);
10 return ptr;
11}