summaryrefslogtreecommitdiff
path: root/src/soc/amd/cezanne/config.c
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2020-12-05 01:39:28 +0100
committerFelix Held <felix-coreboot@felixheld.de>2020-12-06 19:05:47 +0000
commitc8272783db8b8a8fe66e1bd1fe60a37532b6b071 (patch)
tree9f815ae3200215cd4a13503ea8ce11e5c4d01961 /src/soc/amd/cezanne/config.c
parent04f079d396631ff7154b3a750ba0a92adbf5c562 (diff)
downloadcoreboot-c8272783db8b8a8fe66e1bd1fe60a37532b6b071.tar.xz
soc/amd/cezanne: add config.c and minimal chip.h
Change-Id: I89f08c201bd7d9a11b186ef960abe9714a76fb97 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48317 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
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;
+}