Robert Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/63111 )
Change subject: mb/google/dedede/var/kracko: Add FW_CONFIG probe for EXT_VR ......................................................................
mb/google/dedede/var/kracko: Add FW_CONFIG probe for EXT_VR
Add FW_CONFIG probe for don't stuffing ANPEC APW8738BQBI IC for kracko.
BUG=none TEST=emerge-dedede coreboot
Signed-off-by: Robert Chen robert.chen@quanta.corp-partner.google.com Change-Id: Ib12265591e679e6b9ed34299f1256db05147eaef --- M src/mainboard/google/dedede/variants/kracko/Makefile.inc A src/mainboard/google/dedede/variants/kracko/ramstage.c 2 files changed, 19 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/11/63111/1
diff --git a/src/mainboard/google/dedede/variants/kracko/Makefile.inc b/src/mainboard/google/dedede/variants/kracko/Makefile.inc index a722a06..c22ef90 100644 --- a/src/mainboard/google/dedede/variants/kracko/Makefile.inc +++ b/src/mainboard/google/dedede/variants/kracko/Makefile.inc @@ -3,5 +3,6 @@ ramstage-y += variant.c
ramstage-y += gpio.c +ramstage-y += ramstage.c
smm-y += variant.c diff --git a/src/mainboard/google/dedede/variants/kracko/ramstage.c b/src/mainboard/google/dedede/variants/kracko/ramstage.c new file mode 100644 index 0000000..2ee3de3 --- /dev/null +++ b/src/mainboard/google/dedede/variants/kracko/ramstage.c @@ -0,0 +1,18 @@ +/* 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(); +} +