All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Input: atmel_mxt_ts: Add hook for Chromebooks with upstream coreboot
       [not found] <158c166b-bd85-53ab-dc02-920667c7409d@4ray.co>
@ 2018-03-17  4:37 ` Jean Lucas
  0 siblings, 0 replies; only message in thread
From: Jean Lucas @ 2018-03-17  4:37 UTC (permalink / raw)
  To: Nick Dyer, Dmitry Torokhov; +Cc: linux-input, linux-kernel

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.

Signed-off-by: Jean Lucas <jean@4ray.co>
---
  drivers/input/touchscreen/atmel_mxt_ts.c | 8 ++++++++
  1 file changed, 8 insertions(+)

diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c
index 7659bc48f1db..8c74a3e13cca 100644
--- a/drivers/input/touchscreen/atmel_mxt_ts.c
+++ b/drivers/input/touchscreen/atmel_mxt_ts.c
@@ -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,
+	},
  	{ }
  };
  
-- 
2.16.2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-17  4:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <158c166b-bd85-53ab-dc02-920667c7409d@4ray.co>
2018-03-17  4:37 ` [PATCH] Input: atmel_mxt_ts: Add hook for Chromebooks with upstream coreboot Jean Lucas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.