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 <tony-huang@quanta.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74262
Reviewed-by: Derek Huang <derekhuang@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Tony Huang 2023-04-07 10:58:50 +08:00 committed by Jakub Czapiga
parent 046a155352
commit bb1e2f67f7
1 changed files with 12 additions and 0 deletions

View File

@ -2,7 +2,9 @@
#include <baseboard/variants.h> #include <baseboard/variants.h>
#include <boardid.h> #include <boardid.h>
#include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <drivers/intel/gma/opregion.h>
#include <fw_config.h> #include <fw_config.h>
#include <sar.h> #include <sar.h>
@ -14,6 +16,16 @@ const char *get_wifi_sar_cbfs_filename(void)
return NULL; 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) void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config)
{ {
const uint32_t id = board_id(); const uint32_t id = board_id();