From 0a98ff0cbd20484ced53b15f16f8b77d881ffb9e Mon Sep 17 00:00:00 2001
From: Riku Viitanen <riku.viitanen@protonmail.com>
Date: Thu, 25 Sep 2025 22:45:37 +0300
Subject: [PATCH 35/40] mb/topton/adl: Add TWL variant (X2E_N150)

Seems to be the same board but with a Twin Lake processor.
VBT extracted from vendor firmware. This makes HDMI and
DisplayPort work.

Change-Id: I1018042802cbb8010888847226a2117fd9dfaeb0
Signed-off-by: Riku Viitanen <riku.viitanen@protonmail.com>
---
 src/mainboard/topton/adl/Kconfig      |  12 +++++++++---
 src/mainboard/topton/adl/Kconfig.name |   3 +++
 src/mainboard/topton/adl/data_twl.vbt | Bin 0 -> 9216 bytes
 3 files changed, 12 insertions(+), 3 deletions(-)
 create mode 100644 src/mainboard/topton/adl/data_twl.vbt

diff --git a/src/mainboard/topton/adl/Kconfig b/src/mainboard/topton/adl/Kconfig
index ffdfae1eee..331e1d624d 100644
--- a/src/mainboard/topton/adl/Kconfig
+++ b/src/mainboard/topton/adl/Kconfig
@@ -1,6 +1,6 @@
 ## SPDX-License-Identifier: GPL-2.0-or-later
 
-if BOARD_TOPTON_X2F_N100
+if BOARD_TOPTON_X2F_N100 || BOARD_TOPTON_X2E_N150
 
 config BOARD_SPECIFIC_OPTIONS
 	def_bool y
@@ -12,6 +12,7 @@ config BOARD_SPECIFIC_OPTIONS
 	select SUPERIO_ITE_IT8625E
 	select DRIVERS_UART_8250IO
 	select SOC_INTEL_ALDERLAKE_PCH_N
+	select SOC_INTEL_TWINLAKE if BOARD_TOPTON_X2E_N150
 	select INTEL_GMA_HAVE_VBT
 	select SOC_INTEL_COMMON_BLOCK_HDA_VERB
 	select HAVE_INTEL_PTT
@@ -20,7 +21,12 @@ config BOARD_SPECIFIC_OPTIONS
 config MAINBOARD_DIR
 	default "topton/adl"
 
+config INTEL_GMA_VBT_FILE
+	default "src/mainboard/\$(MAINBOARDDIR)/data.vbt" if BOARD_TOPTON_X2F_N100
+	default "src/mainboard/\$(MAINBOARDDIR)/data_twl.vbt" if BOARD_TOPTON_X2E_N150
+
 config MAINBOARD_PART_NUMBER
-	default "X2F_N100"
+	default "X2F_N100" if BOARD_TOPTON_X2F_N100
+	default "X2E_N150" if BOARD_TOPTON_X2E_N150
 
-endif # BOARD_TOPTON_X2F_N100
+endif # BOARD_TOPTON_X2F_N100 || BOARD_TOPTON_X2E_N150
diff --git a/src/mainboard/topton/adl/Kconfig.name b/src/mainboard/topton/adl/Kconfig.name
index 5b8b5ff602..db0eef29be 100644
--- a/src/mainboard/topton/adl/Kconfig.name
+++ b/src/mainboard/topton/adl/Kconfig.name
@@ -2,3 +2,6 @@
 
 config BOARD_TOPTON_X2F_N100
 	bool "X2F_N100"
+
+config BOARD_TOPTON_X2E_N150
+	bool "X2E_N150"
diff --git a/src/mainboard/topton/adl/data_twl.vbt b/src/mainboard/topton/adl/data_twl.vbt
new file mode 100644
index 0000000000000000000000000000000000000000..05fbd5807365b3343e55ecedbd12fabb8a3199e9
GIT binary patch
literal 9216
zcmeHML2MgE6#cVnZ(QS$EeWj~+AvA0;DjbwJ8eiKOI^oKsN1BmoiuVKP~6mpM!1bh
zQ<Ng4E+U6qkoHnYD<ljO5(<}a;EYcw2q9TTAPykqMyWV})EjNgpV_rtrwuVJg{InX
z{oV2WH*f#{GdnZ8yKlUIj0T261F@mNv4M^VMM;7J%`Is>-Yxy%k<p1zU@S1vKQt0N
zMuF^r-<#KN03-?7<?<?uH+*h3mG;Ei=<xL9R65laN}Ydgb~-~N!7vS+KAlRZW=_qf
zl5}+Z#Q<e|wa)$vQ|Tl<e&Ot7YNn4OiGpbAJ<!>GfKuNJT}pSCPw^f^OP{x=@8F?Y
zXJ{ZeG8_pH1;)Z7$LUCnhQgzP(b0k7{-KjJ5*s-Z?hlU*gle4?Aq1y07iXqkJu^!^
z!8Yo{>vV8l?lKKd&ty7jAf2W$hB;4Tsq?9sH&V&YS|=mQfx|`sh!g5^fCVPE`#}a9
zsHlL)`xD_Z5wN|-v938@Q^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