From patchwork Fri Dec 8 08:06:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Lucas X-Patchwork-Id: 10101735 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B5A6F60360 for ; Fri, 8 Dec 2017 08:13:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A57F728A33 for ; Fri, 8 Dec 2017 08:13:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A1AF28B26; Fri, 8 Dec 2017 08:13:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8864F28A33 for ; Fri, 8 Dec 2017 08:13:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752642AbdLHINW (ORCPT ); Fri, 8 Dec 2017 03:13:22 -0500 Received: from mute.4ray.co ([163.172.156.253]:37554 "EHLO 4ray.co" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750927AbdLHINV (ORCPT ); Fri, 8 Dec 2017 03:13:21 -0500 X-Greylist: delayed 399 seconds by postgrey-1.27 at vger.kernel.org; Fri, 08 Dec 2017 03:13:21 EST Received: from racecar (10.8.0.6 [10.8.0.6]) by 4ray.co (OpenSMTPD) with ESMTPSA id 09745c00 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 8 Dec 2017 08:06:39 +0000 (UTC) Date: Fri, 8 Dec 2017 03:06:36 -0500 From: Jean Lucas To: Nick Dyer , Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: atmel_mxt_ts: Add touchscreen support for Chromebooks with upstream coreboot Message-ID: <20171208080634.GA22605@racecar> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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" for the coreboot copy within their Chromium OS tree. The atmel_mxt_ts driver in its current state is set to match the latter case; it will only bind to a Chromebook's touchscreen either if the device uses the vendor coreboot firmware (providing the matching mainboard vendor string), or if a user running upstream coreboot has manually set the string to "GOOGLE". Let's add a match for coreboot's default. Signed-off-by: Jean Lucas --- 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..43d1ea4145d7 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 a custom coreboot version */ + .ident = "Chromebook", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Google"), + }, + .driver_data = chromebook_platform_data, + }, { } };