summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/dedede/variants/baseboard/devicetree.cb4
-rw-r--r--src/mainboard/google/dedede/variants/sasukette/ramstage.c10
2 files changed, 14 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/variants/baseboard/devicetree.cb b/src/mainboard/google/dedede/variants/baseboard/devicetree.cb
index 38b1da2712..3a799944dd 100644
--- a/src/mainboard/google/dedede/variants/baseboard/devicetree.cb
+++ b/src/mainboard/google/dedede/variants/baseboard/devicetree.cb
@@ -24,6 +24,10 @@ fw_config
option LTE_ABSENT 0
option LTE_PRESENT 1
end
+ field EXT_VR 18
+ option EXT_VR_PRESENT 0
+ option EXT_VR_ABSENT 1
+ end
end
chip soc/intel/jasperlake
diff --git a/src/mainboard/google/dedede/variants/sasukette/ramstage.c b/src/mainboard/google/dedede/variants/sasukette/ramstage.c
index 2f714ff03e..b4ea9cbcfa 100644
--- a/src/mainboard/google/dedede/variants/sasukette/ramstage.c
+++ b/src/mainboard/google/dedede/variants/sasukette/ramstage.c
@@ -6,6 +6,7 @@
#include <fw_config.h>
#include <soc/pci_devs.h>
#include <drivers/i2c/generic/chip.h>
+#include <soc/soc_chip.h>
extern struct chip_operations drivers_i2c_generic_ops;
@@ -29,7 +30,16 @@ static void audio_codec_update(void)
config->hid = "RTL5682";
}
+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)
{
audio_codec_update();
+ ext_vr_update();
}