Last active
September 24, 2023 16:59
-
-
Save stpf99/041122e9d1b844671887a4f1650164f8 to your computer and use it in GitHub Desktop.
0001-platform-x86-touchscreen_dmi-Add-info-for-the-BUSH-B.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 9dc9440ac89996e84c00135ced4da819f926a6ac Mon Sep 17 00:00:00 2001 | |
From: Tomasz Swiatek <swiatektomasz99@gmail.com> | |
Date: Fri, 22 Sep 2023 18:46:32 +0200 | |
Subject: [PATCH] platform/x86: touchscreen_dmi: Add info for the BUSH Bush | |
Windows tablet | |
Signed-off-by: Tomasz Swiatek <swiatektomasz99@gmail.com> | |
--- | |
drivers/platform/x86/touchscreen_dmi.c | 22 ++++++++++++++++++++++ | |
1 file changed, 22 insertions(+) | |
diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c | |
index f9301a9382e7..68f09602484b 100644 | |
--- a/drivers/platform/x86/touchscreen_dmi.c | |
+++ b/drivers/platform/x86/touchscreen_dmi.c | |
@@ -42,6 +42,21 @@ static const struct ts_dmi_data archos_101_cesium_educ_data = { | |
.properties = archos_101_cesium_educ_props, | |
}; | |
+static const struct property_entry bush_bush_windows_tablet_props[] = { | |
+ PROPERTY_ENTRY_U32("touchscreen-size-x", 1850), | |
+ PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), | |
+ PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), | |
+ PROPERTY_ENTRY_U32("silead,max-fingers", 10), | |
+ PROPERTY_ENTRY_BOOL("silead,home-button"), | |
+ PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-bush-bush-windows-tablet.fw"), | |
+ { } | |
+}; | |
+ | |
+static const struct ts_dmi_data bush_bush_windows_tablet_data = { | |
+ .acpi_name = "MSSL1680:00", | |
+ .properties = bush_bush_windows_tablet_props, | |
+}; | |
+ | |
static const struct property_entry chuwi_hi8_props[] = { | |
PROPERTY_ENTRY_U32("touchscreen-size-x", 1665), | |
PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), | |
@@ -1070,6 +1085,13 @@ const struct dmi_system_id touchscreen_dmi_table[] = { | |
DMI_MATCH(DMI_PRODUCT_NAME, "ARCHOS 101 Cesium Educ"), | |
}, | |
}, | |
+ { | |
+ /* Bush Windows tablet */ | |
+ .driver_data = (void *)&bush_bush_windows_tablet_data , | |
+ .matches = { | |
+ DMI_MATCH(DMI_PRODUCT_NAME, "Bush Windows tablet"), | |
+ }, | |
+ }, | |
{ | |
/* Chuwi Hi8 */ | |
.driver_data = (void *)&chuwi_hi8_data, | |
-- | |
2.42.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment