From a6fd7105e8bb823a146c95e78d0f8aadc41f93de Mon Sep 17 00:00:00 2001 From: Reka Norman Date: Wed, 30 Mar 2022 13:23:32 +1100 Subject: [PATCH] mb/google/brya/var/nereid: Add separate VBT for HDMI BUG=b:226848617 TEST=HDMI works on nereid Cq-Depend: chrome-internal:4650256 Signed-off-by: Reka Norman Change-Id: I6a90d3d86b32f73ec0130e582539d1c5b045da62 Reviewed-on: https://review.coreboot.org/c/coreboot/+/63239 Tested-by: build bot (Jenkins) Reviewed-by: Kangheui Won --- .../google/brya/variants/nereid/Makefile.inc | 1 + src/mainboard/google/brya/variants/nereid/variant.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/mainboard/google/brya/variants/nereid/variant.c diff --git a/src/mainboard/google/brya/variants/nereid/Makefile.inc b/src/mainboard/google/brya/variants/nereid/Makefile.inc index defb592f2f..2e8157e135 100644 --- a/src/mainboard/google/brya/variants/nereid/Makefile.inc +++ b/src/mainboard/google/brya/variants/nereid/Makefile.inc @@ -5,3 +5,4 @@ romstage-y += gpio.c romstage-y += memory.c ramstage-y += gpio.c +ramstage-y += variant.c diff --git a/src/mainboard/google/brya/variants/nereid/variant.c b/src/mainboard/google/brya/variants/nereid/variant.c new file mode 100644 index 0000000000..967fc9ad02 --- /dev/null +++ b/src/mainboard/google/brya/variants/nereid/variant.c @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include +#include + +const char *mainboard_vbt_filename(void) +{ + if (fw_config_probe(FW_CONFIG(DB_USB, DB_1A_HDMI))) + return "vbt-nereid_hdmi.bin"; + + return "vbt.bin"; +}