88f3771
From b239a7a0c2a1435aa5cbab3f233e0c37e82943dd Mon Sep 17 00:00:00 2001
88f3771
From: Hans de Goede <hdegoede@redhat.com>
88f3771
Date: Tue, 13 Jun 2017 18:17:07 +0200
88f3771
Subject: [PATCH 09/16] platform/x86: silead_dmi: Add touchscreen info for Pipo
88f3771
 W2S tablet
88f3771
88f3771
Add touchscreen info for Pipo W2S tablet.
88f3771
88f3771
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
88f3771
---
88f3771
 drivers/platform/x86/silead_dmi.c | 23 +++++++++++++++++++++++
88f3771
 1 file changed, 23 insertions(+)
88f3771
88f3771
diff --git a/drivers/platform/x86/silead_dmi.c b/drivers/platform/x86/silead_dmi.c
88f3771
index 46c5e1ebfb53..25cbea307a5e 100644
88f3771
--- a/drivers/platform/x86/silead_dmi.c
88f3771
+++ b/drivers/platform/x86/silead_dmi.c
88f3771
@@ -107,6 +107,21 @@ static const struct silead_ts_dmi_data pov_mobii_wintab_p800w_data = {
88f3771
 	.properties	= pov_mobii_wintab_p800w_props,
88f3771
 };
88f3771
 
88f3771
+static const struct property_entry pipo_w2s_props[] = {
88f3771
+	PROPERTY_ENTRY_U32("touchscreen-size-x", 1660),
88f3771
+	PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
88f3771
+	PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
88f3771
+	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
88f3771
+	PROPERTY_ENTRY_STRING("firmware-name",
88f3771
+			      "gsl1680-pipo-w2s.fw"),
88f3771
+	{ }
88f3771
+};
88f3771
+
88f3771
+static const struct silead_ts_dmi_data pipo_w2s_data = {
88f3771
+	.acpi_name	= "MSSL1680:00",
88f3771
+	.properties	= pipo_w2s_props,
88f3771
+};
88f3771
+
88f3771
 static const struct dmi_system_id silead_ts_dmi_table[] = {
88f3771
 	{
88f3771
 		/* CUBE iwork8 Air */
88f3771
@@ -164,6 +179,14 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
88f3771
 			DMI_MATCH(DMI_BIOS_DATE, "08/22/2014"),
88f3771
 		},
88f3771
 	},
88f3771
+	{
88f3771
+		/* Pipo W2S */
88f3771
+		.driver_data = (void *)&pipo_w2s_data,
88f3771
+		.matches = {
88f3771
+			DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
88f3771
+			DMI_MATCH(DMI_PRODUCT_NAME, "W2S"),
88f3771
+		},
88f3771
+	},
88f3771
 	{ },
88f3771
 };
88f3771
 
88f3771
-- 
88f3771
2.13.0
88f3771