diff options
author | Robert Chen <robert.chen@quanta.corp-partner.google.com> | 2022-03-25 16:42:16 +0800 |
---|---|---|
committer | Karthik Ramasubramanian <kramasub@google.com> | 2022-04-21 17:38:55 +0000 |
commit | a6c94332ba1da021bb34a46e7c61265d445f6766 (patch) | |
tree | 6be2d56768ecb73278ebbf05341862688a135712 /src/mainboard/google/dedede | |
parent | 05c9a850fd21e060efdd54b5699aaf8f3c54d2a4 (diff) |
mb/google/dedede/var/lantis: Add FW_CONFIG probe for EXT_VR
Add FW_CONFIG probe for absent ANPEC APW8738BQBI IC on lantis.
BUG=b:223687184
TEST=emerge-dedede coreboot
Signed-off-by: Robert Chen <robert.chen@quanta.corp-partner.google.com>
Change-Id: I3d8eec1d2f962d42f3be225eef8498e8b722aace
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63112
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shou-Chieh Hsu <shouchieh@google.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/mainboard/google/dedede')
-rw-r--r-- | src/mainboard/google/dedede/variants/lantis/Makefile.inc | 3 | ||||
-rw-r--r-- | src/mainboard/google/dedede/variants/lantis/ramstage.c | 17 |
2 files changed, 20 insertions, 0 deletions
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 0000000000..2a9206c2b6 --- /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 0000000000..255e58557e --- /dev/null +++ b/src/mainboard/google/dedede/variants/lantis/ramstage.c @@ -0,0 +1,17 @@ +/* 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(); +} |