summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/google/brya/variants/kinox/Makefile.inc3
-rw-r--r--src/mainboard/google/brya/variants/kinox/overridetree.cb8
-rw-r--r--src/mainboard/google/brya/variants/kinox/variant.c15
3 files changed, 26 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/kinox/Makefile.inc b/src/mainboard/google/brya/variants/kinox/Makefile.inc
index 27174f45bf..81f5ec41a4 100644
--- a/src/mainboard/google/brya/variants/kinox/Makefile.inc
+++ b/src/mainboard/google/brya/variants/kinox/Makefile.inc
@@ -1,6 +1,9 @@
# SPDX-License-Identifier: GPL-2.0-only
bootblock-y += gpio.c
+
romstage-y += gpio.c
romstage-y += memory.c
+
ramstage-y += gpio.c
ramstage-y += ramstage.c
+ramstage-y += variant.c
diff --git a/src/mainboard/google/brya/variants/kinox/overridetree.cb b/src/mainboard/google/brya/variants/kinox/overridetree.cb
index d5fd7cf180..2646b630fa 100644
--- a/src/mainboard/google/brya/variants/kinox/overridetree.cb
+++ b/src/mainboard/google/brya/variants/kinox/overridetree.cb
@@ -1,3 +1,11 @@
+fw_config
+ field DB_DISPLAY 0 3
+ option DB_ABSENT 0
+ option DB_HDMI 1
+ option DB_DP 2
+ end
+end
+
chip soc/intel/alderlake
# Intel Common SoC Config
#+-------------------+---------------------------+
diff --git a/src/mainboard/google/brya/variants/kinox/variant.c b/src/mainboard/google/brya/variants/kinox/variant.c
new file mode 100644
index 0000000000..dbc05ade80
--- /dev/null
+++ b/src/mainboard/google/brya/variants/kinox/variant.c
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <console/console.h>
+#include <drivers/intel/gma/opregion.h>
+#include <fw_config.h>
+
+const char *mainboard_vbt_filename(void)
+{
+ if (fw_config_probe(FW_CONFIG(DB_DISPLAY, DB_HDMI))) {
+ printk(BIOS_INFO, "Use vbt-kinox_HDMI.bin\n");
+ return "vbt-kinox_HDMI.bin";
+ }
+ printk(BIOS_INFO, "Use vbt.bin\n");
+ return "vbt.bin";
+}