From patchwork Tue Aug 16 06:20:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Drake X-Patchwork-Id: 1070492 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7G6KYOo016836 for ; Tue, 16 Aug 2011 06:20:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751559Ab1HPGUd (ORCPT ); Tue, 16 Aug 2011 02:20:33 -0400 Received: from ch1ehsobe003.messaging.microsoft.com ([216.32.181.183]:36215 "EHLO ch1outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751262Ab1HPGUd (ORCPT ); Tue, 16 Aug 2011 02:20:33 -0400 Received: from mail164-ch1-R.bigfish.com (216.32.181.173) by CH1EHSOBE010.bigfish.com (10.43.70.60) with Microsoft SMTP Server id 14.1.225.22; Tue, 16 Aug 2011 06:20:32 +0000 Received: from mail164-ch1 (localhost.localdomain [127.0.0.1]) by mail164-ch1-R.bigfish.com (Postfix) with ESMTP id 396BD14F029C; Tue, 16 Aug 2011 06:20:32 +0000 (UTC) X-SpamScore: 0 X-BigFish: PS0(zzzz1202hzz8275dhz2fh2a8h668h839h) X-Forefront-Antispam-Report: CIP:207.46.4.139; KIP:(null); UIP:(null); IPVD:NLI; H:SN2PRD0402HT005.namprd04.prod.outlook.com; RD:none; EFVD:NLI Received-SPF: pass (mail164-ch1: domain of adrake.org designates 207.46.4.139 as permitted sender) client-ip=207.46.4.139; envelope-from=adrake@adrake.org; helo=SN2PRD0402HT005.namprd04.prod.outlook.com ; .outlook.com ; Received: from mail164-ch1 (localhost.localdomain [127.0.0.1]) by mail164-ch1 (MessageSwitch) id 131347563237662_8995; Tue, 16 Aug 2011 06:20:32 +0000 (UTC) Received: from CH1EHSMHS004.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.245]) by mail164-ch1.bigfish.com (Postfix) with ESMTP id 01ECAE38058; Tue, 16 Aug 2011 06:20:32 +0000 (UTC) Received: from SN2PRD0402HT005.namprd04.prod.outlook.com (207.46.4.139) by CH1EHSMHS004.bigfish.com (10.43.70.4) with Microsoft SMTP Server (TLS) id 14.1.225.22; Tue, 16 Aug 2011 06:20:26 +0000 Received: from [10.250.3.203] (63.245.220.240) by pod51009.outlook.com (10.27.50.83) with Microsoft SMTP Server (TLS) id 14.1.225.64; Tue, 16 Aug 2011 06:20:24 +0000 Message-ID: <4E4A0C26.1060307@adrake.org> Date: Mon, 15 Aug 2011 23:20:22 -0700 From: Andrew Drake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0 MIME-Version: 1.0 To: , Subject: [PATCH] input: bcm5974: Add support for newer MacBookPro8,2 X-Enigmail-Version: 1.2.1 X-Originating-IP: [63.245.220.240] X-OriginatorOrg: adrake.org Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 16 Aug 2011 06:20:34 +0000 (UTC) I just received a new MacBook Pro, product name MacBookPro8,2. It came with a newer/higher resolution touchpad than others with the same product name with USB ID 05ac:0252. The following patch (which applies on top of 3.1-rc2) adds support for this device. Signed-off-by: Andrew Drake --- drivers/input/mouse/bcm5974.c | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/input/mouse/bcm5974.c b/drivers/input/mouse/bcm5974.c index 3126983..a0a4964 100644 --- a/drivers/input/mouse/bcm5974.c +++ b/drivers/input/mouse/bcm5974.c @@ -67,6 +67,10 @@ #define USB_DEVICE_ID_APPLE_WELLSPRING5_ANSI 0x0245 #define USB_DEVICE_ID_APPLE_WELLSPRING5_ISO 0x0246 #define USB_DEVICE_ID_APPLE_WELLSPRING5_JIS 0x0247 +/* Macbook8,2 (unibody) */ +#define USB_DEVICE_ID_APPLE_WELLSPRING5A_ANSI 0x0252 +#define USB_DEVICE_ID_APPLE_WELLSPRING5A_ISO 0x0253 +#define USB_DEVICE_ID_APPLE_WELLSPRING5A_JIS 0x0254 #define BCM5974_DEVICE(prod) { \ .match_flags = (USB_DEVICE_ID_MATCH_DEVICE | \ @@ -104,6 +108,10 @@ static const struct usb_device_id bcm5974_table[] = { BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING5_ANSI), BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING5_ISO), BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING5_JIS), + /* MacbookPro8,2 */ + BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING5A_ANSI), + BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING5A_ISO), + BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING5A_JIS), /* Terminating entry */ {} }; @@ -294,6 +302,18 @@ static const struct bcm5974_config bcm5974_config_table[] = { { DIM_X, DIM_X / SN_COORD, -4415, 5050 }, { DIM_Y, DIM_Y / SN_COORD, -55, 6680 } }, + { + USB_DEVICE_ID_APPLE_WELLSPRING5A_ANSI, + USB_DEVICE_ID_APPLE_WELLSPRING5A_ISO, + USB_DEVICE_ID_APPLE_WELLSPRING5A_JIS, + HAS_INTEGRATED_BUTTON, + 0x84, sizeof(struct bt_data), + 0x81, TYPE2, FINGER_TYPE2, FINGER_TYPE2 + SIZEOF_ALL_FINGERS, + { DIM_PRESSURE, DIM_PRESSURE / SN_PRESSURE, 0, 300 }, + { DIM_WIDTH, DIM_WIDTH / SN_WIDTH, 0, 2048 }, + { DIM_X, DIM_X / SN_COORD, -4750, 5280 }, + { DIM_Y, DIM_Y / SN_COORD, -150, 6730 } + }, {} };