summaryrefslogtreecommitdiff
path: root/src/soc/amd/genoa/config.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-07-13 14:05:08 +0200
committerFelix Held <felix-coreboot@felixheld.de>2023-09-28 16:30:11 +0000
commitc5c35ce238e2ce032db7bc5e0addba1c2d46ef53 (patch)
tree67f5c5c675bb36eda6e8d310ac72b47aa74d43fa /src/soc/amd/genoa/config.c
parente4eba133cc73761fb7ca4bb5de8b8a01633b2be1 (diff)
soc/amd/genoa: Add function to fetch common code dt configuration
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Signed-off-by: Varshit Pandya <pandyavarshit@gmail.com> Change-Id: I5d5d3ff27ab0953844f9bbef30b6487fb480e29b Reviewed-on: https://review.coreboot.org/c/coreboot/+/76500 Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Diffstat (limited to 'src/soc/amd/genoa/config.c')
-rw-r--r--src/soc/amd/genoa/config.c12
1 files changed, 12 insertions, 0 deletions
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 <device/device.h>
+#include <amdblocks/chip.h>
+#include <device/device.h>
+#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;
+}