Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/63604 )
Change subject: mb/google/brask/variants/moli: Pick VBT based on FW_CONFIG ......................................................................
mb/google/brask/variants/moli: Pick VBT based on FW_CONFIG
Pick specific VBTs for HDMI, DP, and ABSENT according to FW_CONFIG.
BUG=b:220241277 TEST=emerge-brask coreboot.
Signed-off-by: Raihow Shi raihow_shi@wistron.corp-partner.google.com Change-Id: Icc8fbef1467605505459fce264697f670591c81e Reviewed-on: https://review.coreboot.org/c/coreboot/+/63604 Reviewed-by: Eric Lai eric_lai@quanta.corp-partner.google.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/mainboard/google/brya/variants/moli/ramstage.c 1 file changed, 11 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Eric Lai: Looks good to me, approved
diff --git a/src/mainboard/google/brya/variants/moli/ramstage.c b/src/mainboard/google/brya/variants/moli/ramstage.c index 5690156..af563ba 100644 --- a/src/mainboard/google/brya/variants/moli/ramstage.c +++ b/src/mainboard/google/brya/variants/moli/ramstage.c @@ -5,7 +5,9 @@ #include <device/device.h> #include <device/pci_ids.h> #include <device/pci_ops.h> +#include <drivers/intel/gma/opregion.h> #include <ec/google/chromeec/ec.h> +#include <fw_config.h> #include <intelblocks/power_limit.h>
const struct cpu_power_limits limits[] = { @@ -30,6 +32,15 @@ .bj_volts_mv = 19500 };
+const char *mainboard_vbt_filename(void) +{ + if (fw_config_probe(FW_CONFIG(DB_OPT, OPT_HDMI))) + return "vbt-moli_HDMI.bin"; + else if (fw_config_probe(FW_CONFIG(DB_OPT, OPT_DP))) + return "vbt-moli_DP.bin"; + return "vbt-moli.bin"; +} + void variant_devtree_update(void) { size_t total_entries = ARRAY_SIZE(limits);