From 2cd0e20929f56924dc719014a13513c2b9d2727c Mon Sep 17 00:00:00 2001 From: Morris Hsu Date: Mon, 20 Mar 2023 15:29:09 +0800 Subject: mb/google/dedede/var/magolor: Add FW_CONFIG probe for EXT_VR Add FW_CONFIG probe for absent ANPEC APW8738BQBI IC on magolor. BUG=b:223687184 TEST=emerge-dedede coreboot chromeos-bootimage and pass suspend_test and firmware_ConsecutiveBoot test Change-Id: I47ad313c4a14edb687913698986df9ece6cd721d Signed-off-by: Morris Hsu Reviewed-on: https://review.coreboot.org/c/coreboot/+/73833 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/mainboard/google/dedede/variants/magolor/Makefile.inc | 1 + src/mainboard/google/dedede/variants/magolor/ramstage.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/mainboard/google/dedede/variants/magolor/ramstage.c (limited to 'src/mainboard/google') diff --git a/src/mainboard/google/dedede/variants/magolor/Makefile.inc b/src/mainboard/google/dedede/variants/magolor/Makefile.inc index f2cbf8d8e0..3151ca3ae7 100644 --- a/src/mainboard/google/dedede/variants/magolor/Makefile.inc +++ b/src/mainboard/google/dedede/variants/magolor/Makefile.inc @@ -2,5 +2,6 @@ ramstage-$(CONFIG_FW_CONFIG) += variant.c ramstage-y += gpio.c +ramstage-y += ramstage.c $(call add_vbt_to_cbfs, vbt_magister.bin, magister-data.vbt) diff --git a/src/mainboard/google/dedede/variants/magolor/ramstage.c b/src/mainboard/google/dedede/variants/magolor/ramstage.c new file mode 100644 index 0000000000..5a671b9c63 --- /dev/null +++ b/src/mainboard/google/dedede/variants/magolor/ramstage.c @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +#include +#include +#include +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(); +} -- cgit v1.2.3