87fc2a4
From d95c127c48ef784214671359a41ac505ac30098a Mon Sep 17 00:00:00 2001
87fc2a4
From: Hans de Goede <hdegoede@redhat.com>
87fc2a4
Date: Sun, 7 May 2017 12:32:11 +0200
87fc2a4
Subject: [PATCH 07/16] platform/x86: silead_dmi: Add touchscreen info for
87fc2a4
 GP-electronic T701
87fc2a4
87fc2a4
Add touchscreen info for the GP-electronic T701 tablet.
87fc2a4
87fc2a4
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
87fc2a4
---
87fc2a4
 drivers/platform/x86/silead_dmi.c | 22 ++++++++++++++++++++++
87fc2a4
 1 file changed, 22 insertions(+)
87fc2a4
87fc2a4
diff --git a/drivers/platform/x86/silead_dmi.c b/drivers/platform/x86/silead_dmi.c
87fc2a4
index a3a57d93cf06..db3a877d2160 100644
87fc2a4
--- a/drivers/platform/x86/silead_dmi.c
87fc2a4
+++ b/drivers/platform/x86/silead_dmi.c
87fc2a4
@@ -80,6 +80,19 @@ static const struct silead_ts_dmi_data surftab_wintron70_st70416_6_data = {
87fc2a4
 	.properties	= surftab_wintron70_st70416_6_props,
87fc2a4
 };
87fc2a4
 
87fc2a4
+static const struct property_entry gp_electronic_t701_props[] = {
87fc2a4
+	PROPERTY_ENTRY_U32("touchscreen-size-x", 960),
87fc2a4
+	PROPERTY_ENTRY_U32("touchscreen-size-y", 640),
87fc2a4
+	PROPERTY_ENTRY_STRING("firmware-name",
87fc2a4
+			      "gsl1680-gp-electronic-t701.fw"),
87fc2a4
+	{ }
87fc2a4
+};
87fc2a4
+
87fc2a4
+static const struct silead_ts_dmi_data gp_electronic_t701_data = {
87fc2a4
+	.acpi_name	= "MSSL1680:00",
87fc2a4
+	.properties	= gp_electronic_t701_props,
87fc2a4
+};
87fc2a4
+
87fc2a4
 static const struct dmi_system_id silead_ts_dmi_table[] = {
87fc2a4
 	{
87fc2a4
 		/* CUBE iwork8 Air */
87fc2a4
@@ -117,6 +130,15 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
87fc2a4
 			DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"),
87fc2a4
 		},
87fc2a4
 	},
87fc2a4
+	{
87fc2a4
+		/* GP-electronic T701 */
87fc2a4
+		.driver_data = (void *)&gp_electronic_t701_data,
87fc2a4
+		.matches = {
87fc2a4
+			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
87fc2a4
+			DMI_MATCH(DMI_PRODUCT_NAME, "T701"),
87fc2a4
+			DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"),
87fc2a4
+		},
87fc2a4
+	},
87fc2a4
 	{ },
87fc2a4
 };
87fc2a4
 
87fc2a4
-- 
87fc2a4
2.13.0
87fc2a4