From 899be1b3529b391c430504589649f0ec9452a1d9 Mon Sep 17 00:00:00 2001 From: Raul E Rangel Date: Fri, 5 Feb 2021 15:50:20 -0700 Subject: soc/amd/picasso: Move memmap_early_dram to common blocks We need the same functionality for cezanne. TEST=Boot ezknil Signed-off-by: Raul E Rangel Change-Id: I0800c662bb473eb571c74e76a8247298f534b53f Reviewed-on: https://review.coreboot.org/c/coreboot/+/50337 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held Reviewed-by: Angel Pons --- src/soc/amd/common/block/include/amdblocks/memmap.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/soc/amd/common/block/include/amdblocks/memmap.h (limited to 'src/soc/amd/common/block/include/amdblocks') diff --git a/src/soc/amd/common/block/include/amdblocks/memmap.h b/src/soc/amd/common/block/include/amdblocks/memmap.h new file mode 100644 index 0000000000..a748e57316 --- /dev/null +++ b/src/soc/amd/common/block/include/amdblocks/memmap.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#ifndef AMD_BLOCK_MEMMAP_H +#define AMD_BLOCK_MEMMAP_H + +#include +#include + +DECLARE_REGION(early_reserved_dram) + +struct memmap_early_dram { + uint32_t base; + uint32_t size; +}; + +void memmap_stash_early_dram_usage(void); +const struct memmap_early_dram *memmap_get_early_dram_usage(void); + +#endif /* AMD_BLOCK_MEMMAP_H */ -- cgit v1.2.3