Raihow Shi has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/63604 )
Change subject: mb/google/brask/variants/moli: use specific VBT files for moli ......................................................................
mb/google/brask/variants/moli: use specific VBT files for moli
use use fw_config to check whether is HDMI, DP, or ABSENT and return different vbt.bin
Signed-off-by: Raihow Shi raihow_shi@wistron.corp-partner.google.com Change-Id: Icc8fbef1467605505459fce264697f670591c81e --- M src/mainboard/google/brya/variants/moli/ramstage.c 1 file changed, 11 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/63604/1
diff --git a/src/mainboard/google/brya/variants/moli/ramstage.c b/src/mainboard/google/brya/variants/moli/ramstage.c index 5690156..d8f43e3 100644 --- a/src/mainboard/google/brya/variants/moli/ramstage.c +++ b/src/mainboard/google/brya/variants/moli/ramstage.c @@ -7,6 +7,8 @@ #include <device/pci_ops.h> #include <ec/google/chromeec/ec.h> #include <intelblocks/power_limit.h> +#include <fw_config.h> +#include <drivers/intel/gma/opregion.h>
const struct cpu_power_limits limits[] = { /* SKU_ID, TDP (Watts), pl1_min, pl1_max, pl2_min, pl2_max, pl4 */ @@ -30,6 +32,15 @@ .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_HDMI))) + return "vbt-moli_DP.bin"; + return "vbt.bin"; +} + void variant_devtree_update(void) { size_t total_entries = ARRAY_SIZE(limits);