From 4b642fd512e6c28bbce2fe97b882ba2c9742ea59 Mon Sep 17 00:00:00 2001 From: Raihow Shi Date: Wed, 13 Apr 2022 10:38:25 +0800 Subject: 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 Change-Id: Icc8fbef1467605505459fce264697f670591c81e Reviewed-on: https://review.coreboot.org/c/coreboot/+/63604 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/mainboard/google/brya/variants/moli/ramstage.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/mainboard/google/brya/variants/moli/ramstage.c b/src/mainboard/google/brya/variants/moli/ramstage.c index 5690156c50..af563ba818 100644 --- a/src/mainboard/google/brya/variants/moli/ramstage.c +++ b/src/mainboard/google/brya/variants/moli/ramstage.c @@ -5,7 +5,9 @@ #include #include #include +#include #include +#include #include const struct cpu_power_limits limits[] = { @@ -30,6 +32,15 @@ const struct psys_config psys_config = { .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); -- cgit v1.2.3