From 151a48d325440569647932c627065e6161514e85 Mon Sep 17 00:00:00 2001 From: Robert Chen Date: Fri, 25 Mar 2022 16:33:11 +0800 Subject: [PATCH] mb/google/dedede/var/kracko: Add FW_CONFIG probe for EXT_VR Add FW_CONFIG probe for absent ANPEC APW8738BQBI IC on kracko. BUG=b:223687184 TEST=emerge-dedede coreboot Signed-off-by: Robert Chen Change-Id: Ib12265591e679e6b9ed34299f1256db05147eaef Reviewed-on: https://review.coreboot.org/c/coreboot/+/63111 Tested-by: build bot (Jenkins) Reviewed-by: Henry Sun Reviewed-by: Shou-Chieh Hsu Reviewed-by: Karthik Ramasubramanian Reviewed-by: Eric Lai --- .../google/dedede/variants/kracko/Makefile.inc | 2 ++ .../google/dedede/variants/kracko/ramstage.c | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 src/mainboard/google/dedede/variants/kracko/ramstage.c diff --git a/src/mainboard/google/dedede/variants/kracko/Makefile.inc b/src/mainboard/google/dedede/variants/kracko/Makefile.inc index a722a06dc9..d4d5a24ed8 100644 --- a/src/mainboard/google/dedede/variants/kracko/Makefile.inc +++ b/src/mainboard/google/dedede/variants/kracko/Makefile.inc @@ -4,4 +4,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 0000000000..255e58557e --- /dev/null +++ b/src/mainboard/google/dedede/variants/kracko/ramstage.c @@ -0,0 +1,17 @@ +/* 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(); +}