aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/touchscreen_dmi.c
diff options
context:
space:
mode:
authoryouling257 <youling257@gmail.com>2018-07-31 05:32:56 -0400
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-08-15 05:55:32 -0400
commitcda5915d15d390068dcdac54d03ddf29b445c6a5 (patch)
tree4f8e869eadacd3b137c206e6556f0123b7a20e76 /drivers/platform/x86/touchscreen_dmi.c
parent207da7128a6d61a1ce3d052b3dfb10d237af6078 (diff)
platform/x86: touchscreen_dmi: Add info for the Cube KNote i1101 tablet
Add touchscreen info for the Cube KNote i1101 tablet. Reported-and-tested-by: lkongl <lkongl@163.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/touchscreen_dmi.c')
-rw-r--r--drivers/platform/x86/touchscreen_dmi.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c
index 85e425420da2..cb204f973491 100644
--- a/drivers/platform/x86/touchscreen_dmi.c
+++ b/drivers/platform/x86/touchscreen_dmi.c
@@ -117,6 +117,22 @@ static const struct ts_dmi_data cube_iwork8_air_data = {
117 .properties = cube_iwork8_air_props, 117 .properties = cube_iwork8_air_props,
118}; 118};
119 119
120static const struct property_entry cube_knote_i1101_props[] = {
121 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
122 PROPERTY_ENTRY_U32("touchscreen-min-y", 22),
123 PROPERTY_ENTRY_U32("touchscreen-size-x", 1961),
124 PROPERTY_ENTRY_U32("touchscreen-size-y", 1513),
125 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-cube-knote-i1101.fw"),
126 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
127 PROPERTY_ENTRY_BOOL("silead,home-button"),
128 { }
129};
130
131static const struct ts_dmi_data cube_knote_i1101_data = {
132 .acpi_name = "MSSL1680:00",
133 .properties = cube_knote_i1101_props,
134};
135
120static const struct property_entry dexp_ursus_7w_props[] = { 136static const struct property_entry dexp_ursus_7w_props[] = {
121 PROPERTY_ENTRY_U32("touchscreen-size-x", 890), 137 PROPERTY_ENTRY_U32("touchscreen-size-x", 890),
122 PROPERTY_ENTRY_U32("touchscreen-size-y", 630), 138 PROPERTY_ENTRY_U32("touchscreen-size-y", 630),
@@ -459,6 +475,16 @@ static const struct dmi_system_id touchscreen_dmi_table[] = {
459 }, 475 },
460 }, 476 },
461 { 477 {
478 /* Cube KNote i1101 */
479 .driver_data = (void *)&cube_knote_i1101_data,
480 .matches = {
481 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
482 DMI_MATCH(DMI_BOARD_NAME, "L1W6_I1101"),
483 DMI_MATCH(DMI_SYS_VENDOR, "ALLDOCUBE"),
484 DMI_MATCH(DMI_PRODUCT_NAME, "i1101"),
485 },
486 },
487 {
462 /* DEXP Ursus 7W */ 488 /* DEXP Ursus 7W */
463 .driver_data = (void *)&dexp_ursus_7w_data, 489 .driver_data = (void *)&dexp_ursus_7w_data,
464 .matches = { 490 .matches = {