From bb1e2f67f751d92caf85d3c312dece947a71abd0 Mon Sep 17 00:00:00 2001 From: Tony Huang Date: Fri, 7 Apr 2023 10:58:50 +0800 Subject: [PATCH] mb/google/nissa/var/yaviks: Select VBT based on FW_CONFIG for yavilla Select hdmi vbt bin files based on MB_HDMI field of FW_CONFIG. BUG=b:277148122, b:276369170 BRANCH=firmware-nissa-15217.B TEST=emerge-nissa coreboot Change-Id: I210003c27c83155dd5a768c1a6cdcfd8c849d256 Signed-off-by: Tony Huang Reviewed-on: https://review.coreboot.org/c/coreboot/+/74262 Reviewed-by: Derek Huang Tested-by: build bot (Jenkins) --- src/mainboard/google/brya/variants/yaviks/variant.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/mainboard/google/brya/variants/yaviks/variant.c b/src/mainboard/google/brya/variants/yaviks/variant.c index 7010520c18..12ca39516f 100644 --- a/src/mainboard/google/brya/variants/yaviks/variant.c +++ b/src/mainboard/google/brya/variants/yaviks/variant.c @@ -2,7 +2,9 @@ #include #include +#include #include +#include #include #include @@ -14,6 +16,16 @@ const char *get_wifi_sar_cbfs_filename(void) return NULL; } +const char *mainboard_vbt_filename(void) +{ + if (fw_config_probe(FW_CONFIG(MB_HDMI, HDMI_PRESENT))) { + printk(BIOS_INFO, "Use vbt-yavilla.bin\n"); + return "vbt-yavilla.bin"; + } + printk(BIOS_INFO, "Use vbt.bin\n"); + return "vbt.bin"; +} + void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config) { const uint32_t id = board_id();