Skip to contentSkip to conversation

Input: atmel_mxt_ts: Add hook for Chromebooks with upstream coreboot

PATCH New Jean Lucas 1 participant 1 message Mar 17, 2018 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jean Lucas

author
#1 lore raw

PATCH 1/1 Input: atmel_mxt_ts: Add hook for Chromebooks with upstream coreboot

Chromebooks use coreboot for system initialization. coreboot has always had the default mainboard vendor string for Google machines set to "Google". Google engineers set this string to "GOOGLE" in the coreboot copies of the Chromium OS tree. The atmel_mxt_ts driver in it's current state is set to match the latter case, i.e. it will only bind to a Chromebook's touchscreen either if the device uses the downstream coreboot firmware (providing the matching mainboard vendor string), or if a user running upstream coreboot has manually set the string to "GOOGLE". This patch adds a match for coreboot's default.

---
 drivers/input/touchscreen/atmel_mxt_ts.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/input/touchscreen/atmel_mxt_ts.c +8 -0
index 7659bc48f1db..8c74a3e13cca 100644
@@ -3038,6 +3038,14 @@ static const struct dmi_system_id mxt_dmi_table[] = {
 		},
 		.driver_data = chromebook_platform_data,
 	},
+	{
+		/* Chromebooks with upstream coreboot */
+		.ident = "Chromebook",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Google"),
+		},
+		.driver_data = chromebook_platform_data,
+	},
 	{ }
 };
 
Signature · 1 line
2.16.2