diff options
-rw-r--r-- | src/mainboard/google/dedede/variants/magolor/Makefile.inc | 1 | ||||
-rw-r--r-- | src/mainboard/google/dedede/variants/magolor/ramstage.c | 14 |
2 files changed, 15 insertions, 0 deletions
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 <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(); +} |