summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/hatch/variants/nightfury/Makefile.inc1
-rw-r--r--src/mainboard/google/hatch/variants/nightfury/variant.c16
2 files changed, 17 insertions, 0 deletions
diff --git a/src/mainboard/google/hatch/variants/nightfury/Makefile.inc b/src/mainboard/google/hatch/variants/nightfury/Makefile.inc
index 7799cd29c9..05f77adafc 100644
--- a/src/mainboard/google/hatch/variants/nightfury/Makefile.inc
+++ b/src/mainboard/google/hatch/variants/nightfury/Makefile.inc
@@ -10,3 +10,4 @@ bootblock-y += gpio.c
ramstage-y += gpio.c
ramstage-y += ramstage.c
+ramstage-y += variant.c
diff --git a/src/mainboard/google/hatch/variants/nightfury/variant.c b/src/mainboard/google/hatch/variants/nightfury/variant.c
new file mode 100644
index 0000000000..8fede2c129
--- /dev/null
+++ b/src/mainboard/google/hatch/variants/nightfury/variant.c
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <baseboard/variants.h>
+#include <chip.h>
+#include <ec/google/chromeec/ec.h>
+#include <drivers/intel/gma/opregion.h>
+
+const char *mainboard_vbt_filename(void)
+{
+ uint32_t sku_id = google_chromeec_get_board_sku();
+
+ if (sku_id == 2)
+ return "vbt-nightfury-qled.bin";
+ else
+ return "vbt.bin";
+}