summaryrefslogtreecommitdiff
path: root/src/soc/amd/cezanne/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/cezanne/config.c')
-rw-r--r--src/soc/amd/cezanne/config.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/soc/amd/cezanne/config.c b/src/soc/amd/cezanne/config.c
new file mode 100644
index 0000000000..b5855eb40f
--- /dev/null
+++ b/src/soc/amd/cezanne/config.c
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <amdblocks/chip.h>
+#include <device/device.h>
+#include "chip.h"
+
+const struct soc_amd_common_config *soc_get_common_config()
+{
+ /* config_of_soc calls die() internally if cfg was NULL, so no need to re-check */
+ const struct soc_amd_cezanne_config *cfg = config_of_soc();
+ return &cfg->common_config;
+}