summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/guybrush/variants/dewatt/Makefile.inc2
-rw-r--r--src/mainboard/google/guybrush/variants/dewatt/variant.c10
2 files changed, 12 insertions, 0 deletions
diff --git a/src/mainboard/google/guybrush/variants/dewatt/Makefile.inc b/src/mainboard/google/guybrush/variants/dewatt/Makefile.inc
index becdf6a365..823860b4a3 100644
--- a/src/mainboard/google/guybrush/variants/dewatt/Makefile.inc
+++ b/src/mainboard/google/guybrush/variants/dewatt/Makefile.inc
@@ -6,3 +6,5 @@ ramstage-y += gpio.c
verstage-y += gpio.c
subdirs-y += ./memory
+
+romstage-y += variant.c
diff --git a/src/mainboard/google/guybrush/variants/dewatt/variant.c b/src/mainboard/google/guybrush/variants/dewatt/variant.c
new file mode 100644
index 0000000000..a985b05947
--- /dev/null
+++ b/src/mainboard/google/guybrush/variants/dewatt/variant.c
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <baseboard/variants.h>
+#include <amdblocks/cpu.h>
+
+void variant_update_ddi_descriptors(fsp_ddi_descriptor *ddi_descriptors)
+{
+ if ((get_cpu_count() == 4 && get_threads_per_core() == 2) || get_cpu_count() == 2)
+ ddi_descriptors[1].connector_type = DDI_UNUSED_TYPE;
+}