summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReka Norman <rekanorman@google.com>2022-03-30 13:23:32 +1100
committerFelix Held <felix-coreboot@felixheld.de>2022-04-01 22:19:27 +0000
commita6fd7105e8bb823a146c95e78d0f8aadc41f93de (patch)
tree47ea5e7c342d00d89928c19d763a62442bc22bd3
parentcb51189897802e0a43e2155a85f01e6f444a86f0 (diff)
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 <rekanorman@google.com> Change-Id: I6a90d3d86b32f73ec0130e582539d1c5b045da62 Reviewed-on: https://review.coreboot.org/c/coreboot/+/63239 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kangheui Won <khwon@chromium.org>
-rw-r--r--src/mainboard/google/brya/variants/nereid/Makefile.inc1
-rw-r--r--src/mainboard/google/brya/variants/nereid/variant.c12
2 files changed, 13 insertions, 0 deletions
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 <drivers/intel/gma/opregion.h>
+#include <fw_config.h>
+
+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";
+}