Skip to content

Commit

Permalink
platform/x86: touchscreen_dmi: Add info for the Trekstor Primetab T13…
Browse files Browse the repository at this point in the history
…B tablet

Add touchscreen info for the Trekstor Primetab T13B tablet.

Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Marian Cepok <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
  • Loading branch information
Seltsamsel authored and andy-shev committed Oct 19, 2018
1 parent 1a7938a commit 30394a8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions drivers/platform/x86/touchscreen_dmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,22 @@ static const struct ts_dmi_data trekstor_primebook_c13_data = {
.properties = trekstor_primebook_c13_props,
};

static const struct property_entry trekstor_primetab_t13b_props[] = {
PROPERTY_ENTRY_U32("touchscreen-size-x", 2500),
PROPERTY_ENTRY_U32("touchscreen-size-y", 1900),
PROPERTY_ENTRY_STRING("firmware-name",
"gsl1680-trekstor-primetab-t13b.fw"),
PROPERTY_ENTRY_U32("silead,max-fingers", 10),
PROPERTY_ENTRY_BOOL("silead,home-button"),
PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
{ }
};

static const struct ts_dmi_data trekstor_primetab_t13b_data = {
.acpi_name = "MSSL1680:00",
.properties = trekstor_primetab_t13b_props,
};

static const struct property_entry trekstor_surftab_twin_10_1_props[] = {
PROPERTY_ENTRY_U32("touchscreen-size-x", 1900),
PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
Expand Down Expand Up @@ -672,6 +688,14 @@ static const struct dmi_system_id touchscreen_dmi_table[] = {
DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"),
},
},
{
/* Trekstor Primetab T13B */
.driver_data = (void *)&trekstor_primetab_t13b_data,
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"),
},
},
{
/* TrekStor SurfTab twin 10.1 ST10432-8 */
.driver_data = (void *)&trekstor_surftab_twin_10_1_data,
Expand Down

0 comments on commit 30394a8

Please sign in to comment.