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>
This commit is contained in:
Raihow Shi 2022-04-13 10:38:25 +08:00 committed by Felix Held
parent d9314c7efe
commit 4b642fd512
1 changed files with 11 additions and 0 deletions

View File

@ -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 @@ 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);