diff options
author | Raihow Shi <raihow_shi@wistron.corp-partner.google.com> | 2022-04-13 10:38:25 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-04-19 13:05:50 +0000 |
commit | 4b642fd512e6c28bbce2fe97b882ba2c9742ea59 (patch) | |
tree | 31cdd08b7254967a255bfb27d50d70c6fdbdccfa /src/mainboard/google/brya | |
parent | d9314c7efed02b0a520790881443f03860ad8eea (diff) |
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>
Diffstat (limited to 'src/mainboard/google/brya')
-rw-r--r-- | src/mainboard/google/brya/variants/moli/ramstage.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 <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); |