summaryrefslogtreecommitdiff
path: root/src/soc/cavium/cn81xx/cbmem.c
blob: 0b0c7176a8a3aa3d64a2a26639b20fbccfef71dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* SPDX-License-Identifier: GPL-2.0-only */

#include <cbmem.h>
#include <soc/addressmap.h>
#include <soc/sdram.h>
#include <symbols.h>

uintptr_t cbmem_top_chipset(void)
{
	/* Make sure not to overlap with reserved ATF scratchpad */
	return (uintptr_t)_dram + (sdram_size_mb() - 1) * MiB;
}