From c5c35ce238e2ce032db7bc5e0addba1c2d46ef53 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 13 Jul 2023 14:05:08 +0200 Subject: soc/amd/genoa: Add function to fetch common code dt configuration Signed-off-by: Arthur Heymans Signed-off-by: Varshit Pandya Change-Id: I5d5d3ff27ab0953844f9bbef30b6487fb480e29b Reviewed-on: https://review.coreboot.org/c/coreboot/+/76500 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/soc/amd/genoa/config.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/soc/amd/genoa/config.c (limited to 'src/soc/amd/genoa/config.c') diff --git a/src/soc/amd/genoa/config.c b/src/soc/amd/genoa/config.c new file mode 100644 index 0000000000..f59964a260 --- /dev/null +++ b/src/soc/amd/genoa/config.c @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include +#include +#include +#include "chip.h" + +const struct soc_amd_common_config *soc_get_common_config(void) +{ + const struct soc_amd_genoa_config *cfg = config_of_soc(); + return &cfg->common_config; +} -- cgit v1.2.3