[PATCH] platform/x86: touchscreen_dmi: Add info for the Nuvision NES11 tablet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add touchscreen info for the Nuvision NES11 tablet.

Signed-off-by: James Buren <braewoods+lkml@xxxxxxxxxxxxx>
---
 drivers/platform/x86/touchscreen_dmi.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c
index 93177e6e5ecd..33f91eb3c61f 100644
--- a/drivers/platform/x86/touchscreen_dmi.c
+++ b/drivers/platform/x86/touchscreen_dmi.c
@@ -357,6 +357,22 @@ static const struct ts_dmi_data myria_my8307_data = {
 	.properties	= myria_my8307_props,
 };
 
+static const struct property_entry nuvision_nes11_props[] = {
+	PROPERTY_ENTRY_U32("touchscreen-min-x", 39),
+	PROPERTY_ENTRY_U32("touchscreen-min-y", 31),
+	PROPERTY_ENTRY_U32("touchscreen-size-x", 1949),
+	PROPERTY_ENTRY_U32("touchscreen-size-y", 1508),
+	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
+	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-nuvision-nes11.fw"),
+	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
+	{ }
+};
+
+static const struct ts_dmi_data nuvision_nes11_data = {
+	.acpi_name	= "MSSL1680:00",
+	.properties	= nuvision_nes11_props,
+};
+
 static const struct property_entry onda_obook_20_plus_props[] = {
 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
@@ -856,6 +872,14 @@ static const struct dmi_system_id touchscreen_dmi_table[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "MY8307"),
 		},
 	},
+	{
+		/* Nuvision NES11 */
+		.driver_data = (void *)&nuvision_nes11_data,
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Nuvision"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "NES11"),
+		},
+	},
 	{
 		/* Onda oBook 20 Plus */
 		.driver_data = (void *)&onda_obook_20_plus_data,
-- 
2.17.1




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux