summaryrefslogtreecommitdiff
path: root/src/soc/nvidia/tegra124/cbmem.c
blob: 7ef73153d115f0c2f49c7f8d07fe8afb41b7d525 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */

#include <cbmem.h>
#include <soc/display.h>
#include <soc/sdram.h>

void *cbmem_top_chipset(void)
{
	return (void *)((sdram_max_addressable_mb() - FB_SIZE_MB) << 20UL);
}