sharkcz / rpms / kernel

Forked from rpms/kernel 6 years ago
Clone
c6ca7ce
From 55b347c61b2850d1e11e159ab02dc71f13b06481 Mon Sep 17 00:00:00 2001
c6ca7ce
From: Hans de Goede <hdegoede@redhat.com>
c6ca7ce
Date: Sun, 11 Jun 2017 17:42:31 +0200
c6ca7ce
Subject: [PATCH 08/16] platform/x86: silead_dmi: Add touchscreen info for PoV
c6ca7ce
 mobii wintab p800w
c6ca7ce
c6ca7ce
Add touchscreen info for the Point of View mobii wintab p800w tablet.
c6ca7ce
c6ca7ce
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
c6ca7ce
---
c6ca7ce
 drivers/platform/x86/silead_dmi.c | 25 +++++++++++++++++++++++++
c6ca7ce
 1 file changed, 25 insertions(+)
c6ca7ce
c6ca7ce
diff --git a/drivers/platform/x86/silead_dmi.c b/drivers/platform/x86/silead_dmi.c
c6ca7ce
index db3a877d2160..46c5e1ebfb53 100644
c6ca7ce
--- a/drivers/platform/x86/silead_dmi.c
c6ca7ce
+++ b/drivers/platform/x86/silead_dmi.c
c6ca7ce
@@ -93,6 +93,20 @@ static const struct silead_ts_dmi_data gp_electronic_t701_data = {
c6ca7ce
 	.properties	= gp_electronic_t701_props,
c6ca7ce
 };
c6ca7ce
 
c6ca7ce
+static const struct property_entry pov_mobii_wintab_p800w_props[] = {
c6ca7ce
+	PROPERTY_ENTRY_U32("touchscreen-size-x", 1800),
c6ca7ce
+	PROPERTY_ENTRY_U32("touchscreen-size-y", 1150),
c6ca7ce
+	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
c6ca7ce
+	PROPERTY_ENTRY_STRING("firmware-name",
c6ca7ce
+			      "gsl3692-pov-mobii-wintab-p800w.fw"),
c6ca7ce
+	{ }
c6ca7ce
+};
c6ca7ce
+
c6ca7ce
+static const struct silead_ts_dmi_data pov_mobii_wintab_p800w_data = {
c6ca7ce
+	.acpi_name	= "MSSL1680:00",
c6ca7ce
+	.properties	= pov_mobii_wintab_p800w_props,
c6ca7ce
+};
c6ca7ce
+
c6ca7ce
 static const struct dmi_system_id silead_ts_dmi_table[] = {
c6ca7ce
 	{
c6ca7ce
 		/* CUBE iwork8 Air */
c6ca7ce
@@ -139,6 +153,17 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
c6ca7ce
 			DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"),
c6ca7ce
 		},
c6ca7ce
 	},
c6ca7ce
+	{
c6ca7ce
+		/* Point of View mobii wintab p800w */
c6ca7ce
+		.driver_data = (void *)&pov_mobii_wintab_p800w_data,
c6ca7ce
+		.matches = {
c6ca7ce
+			DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
c6ca7ce
+			DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
c6ca7ce
+			DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1013"),
c6ca7ce
+			/* Above matches are too generic, add bios-date match */
c6ca7ce
+			DMI_MATCH(DMI_BIOS_DATE, "08/22/2014"),
c6ca7ce
+		},
c6ca7ce
+	},
c6ca7ce
 	{ },
c6ca7ce
 };
c6ca7ce
 
c6ca7ce
-- 
c6ca7ce
2.13.0
c6ca7ce