summarylogtreecommitdiffstats
path: root/0001-remove-the-unnecessary-for-NUC-X15.patch
blob: b20d573d1fbdec84392f4042cc443b38364862bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
From e458a927bc5c87efdcc1b621ec5997773a85922a Mon Sep 17 00:00:00 2001
From: nuvole <mitltlatltl@gmail.com>
Date: Thu, 1 Aug 2024 14:53:16 +0800
Subject: [PATCH] remove the unnecessary for NUC X15

---
 src/Kbuild                | 18 +++++++++---------
 src/tuxedo_io/tuxedo_io.c |  3 ++-
 src/tuxedo_keyboard.c     |  7 ++++---
 src/uniwill_keyboard.h    |  1 +
 4 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/tuxedo_io/tuxedo_io.c b/src/tuxedo_io/tuxedo_io.c
index 264a954..8009127 100644
--- a/src/tuxedo_io/tuxedo_io.c
+++ b/src/tuxedo_io/tuxedo_io.c
@@ -166,7 +166,8 @@ void uw_id_tdp(void)
 		tdp_min_defs = tdp_min_gmxmgxx;
 		tdp_max_defs = tdp_max_gmxmgxx;
 	} else if (dmi_match(DMI_PRODUCT_SKU, "POLARIS1XI03")
-		|| dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XI03")) {
+		|| dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XI03")
+		|| dmi_match(DMI_PRODUCT_SKU, "BKC71FBFU6000")) {
 		tdp_min_defs = tdp_min_gmxtgxx;
 		tdp_max_defs = tdp_max_gmxtgxx;
 	} else if (dmi_match(DMI_PRODUCT_SKU, "POLARIS1XA03")
diff --git a/src/tuxedo_keyboard.c b/src/tuxedo_keyboard.c
index 21b4087..063290b 100644
--- a/src/tuxedo_keyboard.c
+++ b/src/tuxedo_keyboard.c
@@ -21,7 +21,7 @@
 #include "tuxedo_keyboard_common.h"
 #include "clevo_keyboard.h"
 #include "uniwill_keyboard.h"
-#include "tuxedo_compatibility_check/tuxedo_compatibility_check.h"
+// #include "tuxedo_compatibility_check/tuxedo_compatibility_check.h"
 #include <linux/mutex.h>
 #include <asm/cpu_device_id.h>
 #include <asm/intel-family.h>
@@ -197,8 +197,9 @@ static int __init tuxedo_keyboard_init(void)
 {
 	TUXEDO_INFO("module init\n");
 
-	if (!tuxedo_is_compatible())
-		return -ENODEV;
+	// have already skipped for >= gen12
+	// if (!tuxedo_is_compatible())
+	// 	return -ENODEV;
 
 	return 0;
 }
diff --git a/src/uniwill_keyboard.h b/src/uniwill_keyboard.h
index 79293b5..bf89a7c 100644
--- a/src/uniwill_keyboard.h
+++ b/src/uniwill_keyboard.h
@@ -1041,6 +1041,7 @@ struct uniwill_device_features_t *uniwill_get_device_features(void)
 		|| dmi_match(DMI_PRODUCT_SKU, "POLARIS1XA03")
 		|| dmi_match(DMI_PRODUCT_SKU, "POLARIS1XI03")
 		|| dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XI03")
+		|| dmi_match(DMI_PRODUCT_SKU, "BKC71FBFU6000")
 		|| dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XA03")
 		|| dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XI04")
 		|| dmi_match(DMI_PRODUCT_SKU, "STEPOL1XA04")
-- 
2.46.0