Tony Huang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/63076 )
Change subject: mb/google/dedede/var/lantis: Add FW_CONFIG probe for EXT_VR ......................................................................
mb/google/dedede/var/lantis: Add FW_CONFIG probe for EXT_VR
Add FW_CONFIG probe for don't stuffing Anpec APW8738 VNN power IC. If removed the VNN power IC then "disable_external_bypass_vr" should be set to "1" to disable.
BUG=b:223687184 BRANCH=dedede TEST=test for enter S0ix and resume normally by powerd_dbus_suspend
Change-Id: I6c21c416c5ca56fd06ed162d7ae37f0a094176e1 Signed-off-by: Tony Huang tony-huang@quanta.corp-partner.google.com --- A src/mainboard/google/dedede/variants/lantis/Makefile.inc A src/mainboard/google/dedede/variants/lantis/ramstage.c 2 files changed, 21 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/76/63076/1
diff --git a/src/mainboard/google/dedede/variants/lantis/Makefile.inc b/src/mainboard/google/dedede/variants/lantis/Makefile.inc new file mode 100644 index 0000000..2a9206c --- /dev/null +++ b/src/mainboard/google/dedede/variants/lantis/Makefile.inc @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-or-later + +ramstage-y += ramstage.c diff --git a/src/mainboard/google/dedede/variants/lantis/ramstage.c b/src/mainboard/google/dedede/variants/lantis/ramstage.c new file mode 100644 index 0000000..580e6bf --- /dev/null +++ b/src/mainboard/google/dedede/variants/lantis/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(); +}