|
@@ -2487,6 +2487,31 @@ static struct mxt_acpi_platform_data samus_platform_data[] = {
|
|
|
{ }
|
|
|
};
|
|
|
|
|
|
+static unsigned int chromebook_tp_buttons[] = {
|
|
|
+ KEY_RESERVED,
|
|
|
+ KEY_RESERVED,
|
|
|
+ KEY_RESERVED,
|
|
|
+ KEY_RESERVED,
|
|
|
+ KEY_RESERVED,
|
|
|
+ BTN_LEFT
|
|
|
+};
|
|
|
+
|
|
|
+static struct mxt_acpi_platform_data chromebook_platform_data[] = {
|
|
|
+ {
|
|
|
+ /* Touchpad */
|
|
|
+ .hid = "ATML0000",
|
|
|
+ .pdata = {
|
|
|
+ .t19_num_keys = ARRAY_SIZE(chromebook_tp_buttons),
|
|
|
+ .t19_keymap = chromebook_tp_buttons,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ /* Touchscreen */
|
|
|
+ .hid = "ATML0001",
|
|
|
+ },
|
|
|
+ { }
|
|
|
+};
|
|
|
+
|
|
|
static const struct dmi_system_id mxt_dmi_table[] = {
|
|
|
{
|
|
|
/* 2015 Google Pixel */
|
|
@@ -2497,6 +2522,14 @@ static const struct dmi_system_id mxt_dmi_table[] = {
|
|
|
},
|
|
|
.driver_data = samus_platform_data,
|
|
|
},
|
|
|
+ {
|
|
|
+ /* Other Google Chromebooks */
|
|
|
+ .ident = "Chromebook",
|
|
|
+ .matches = {
|
|
|
+ DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"),
|
|
|
+ },
|
|
|
+ .driver_data = chromebook_platform_data,
|
|
|
+ },
|
|
|
{ }
|
|
|
};
|
|
|
|