summaryrefslogtreecommitdiff
path: root/src/mainboard/google/dedede
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/dedede')
-rw-r--r--src/mainboard/google/dedede/variants/lantis/Makefile.inc3
-rw-r--r--src/mainboard/google/dedede/variants/lantis/ramstage.c17
2 files changed, 20 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/variants/lantis/Makefile.inc b/src/mainboard/google/dedede/variants/lantis/Makefile.inc
new file mode 100644
index 0000000000..2a9206c2b6
--- /dev/null
+++ b/src/mainboard/google/dedede/variants/lantis/Makefile.inc
@@ -0,0 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-or-later
+
+ramstage-y += ramstage.c
diff --git a/src/mainboard/google/dedede/variants/lantis/ramstage.c b/src/mainboard/google/dedede/variants/lantis/ramstage.c
new file mode 100644
index 0000000000..255e58557e
--- /dev/null
+++ b/src/mainboard/google/dedede/variants/lantis/ramstage.c
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <baseboard/variants.h>
+#include <fw_config.h>
+#include <soc/soc_chip.h>
+
+static void ext_vr_update(void)
+{
+ struct soc_intel_jasperlake_config *cfg = config_of_soc();
+ if (fw_config_probe(FW_CONFIG(EXT_VR, EXT_VR_ABSENT)))
+ cfg->disable_external_bypass_vr = 1;
+}
+
+void variant_devtree_update(void)
+{
+ ext_vr_update();
+}