summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorZhi Li <lizhi7@huaqin.corp-partner.google.com>2021-08-03 21:35:49 +0800
committerFelix Held <felix-coreboot@felixheld.de>2021-08-27 02:47:13 +0000
commitd59c950379e54d9c0a42fddeac38a2108c5ee953 (patch)
tree87cbe76bfcac4e9c8c744e68edd98b5a08963ad9 /src/mainboard/google
parent8d268e9bda1f3b9fe787c9d8592c68958c6ff480 (diff)
mb/google/dedede/var/sasukette: Add FW_CONFIG probe for EXT_VR
commit df520855 (soc/intel/jsl: Add disable_external_bypass_vr config) Add FW_CONFIG probe for don't stuffing ANPEC APW8738BQBI IC. BUG=b:190727416 BRANCH=dedede TEST=test for enter S0ix and resume normally by powerd_dbus_suspend Signed-off-by: Zhi Li <lizhi7@huaqin.corp-partner.google.com> Change-Id: I15ab30f14df9dc02157009091aa8398e2fa75188 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56804 Reviewed-by: Weimin Wu <wuweimin@huaqin.corp-partner.google.com> Reviewed-by: Henry Sun <henrysun@google.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
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();
}