mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-07-21 03:17:18 +00:00
6203cbca5c
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
68 lines
2.4 KiB
Diff
68 lines
2.4 KiB
Diff
From d622494f403ba2a79ac08f83e7b016d0687c4ce5 Mon Sep 17 00:00:00 2001
|
|
From: Henrik Rydberg <rydberg@euromail.se>
|
|
Date: Tue, 10 Jul 2012 09:43:57 -0700
|
|
Subject: [PATCH 104/109] Input: bcm5974 - Add support for 2012 MacBook Pro
|
|
Retina
|
|
|
|
commit 3dde22a98e94eb18527f0ff0068fb2fb945e58d4 upstream.
|
|
|
|
Add support for the 15'' MacBook Pro Retina model (MacBookPro10,1).
|
|
|
|
Patch originally written by clipcarl (forums.opensuse.org).
|
|
|
|
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
|
|
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
---
|
|
drivers/input/mouse/bcm5974.c | 20 ++++++++++++++++++++
|
|
1 files changed, 20 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/drivers/input/mouse/bcm5974.c b/drivers/input/mouse/bcm5974.c
|
|
index 5ec617e..ec58f48 100644
|
|
--- a/drivers/input/mouse/bcm5974.c
|
|
+++ b/drivers/input/mouse/bcm5974.c
|
|
@@ -79,6 +79,10 @@
|
|
#define USB_DEVICE_ID_APPLE_WELLSPRING5A_ANSI 0x0252
|
|
#define USB_DEVICE_ID_APPLE_WELLSPRING5A_ISO 0x0253
|
|
#define USB_DEVICE_ID_APPLE_WELLSPRING5A_JIS 0x0254
|
|
+/* MacbookPro10,1 (unibody, June 2012) */
|
|
+#define USB_DEVICE_ID_APPLE_WELLSPRING7_ANSI 0x0262
|
|
+#define USB_DEVICE_ID_APPLE_WELLSPRING7_ISO 0x0263
|
|
+#define USB_DEVICE_ID_APPLE_WELLSPRING7_JIS 0x0264
|
|
|
|
#define BCM5974_DEVICE(prod) { \
|
|
.match_flags = (USB_DEVICE_ID_MATCH_DEVICE | \
|
|
@@ -128,6 +132,10 @@ static const struct usb_device_id bcm5974_table[] = {
|
|
BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING5A_ANSI),
|
|
BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING5A_ISO),
|
|
BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING5A_JIS),
|
|
+ /* MacbookPro10,1 */
|
|
+ BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING7_ANSI),
|
|
+ BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING7_ISO),
|
|
+ BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING7_JIS),
|
|
/* Terminating entry */
|
|
{}
|
|
};
|
|
@@ -354,6 +362,18 @@ static const struct bcm5974_config bcm5974_config_table[] = {
|
|
{ DIM_X, DIM_X / SN_COORD, -4620, 5140 },
|
|
{ DIM_Y, DIM_Y / SN_COORD, -150, 6600 }
|
|
},
|
|
+ {
|
|
+ USB_DEVICE_ID_APPLE_WELLSPRING7_ANSI,
|
|
+ USB_DEVICE_ID_APPLE_WELLSPRING7_ISO,
|
|
+ USB_DEVICE_ID_APPLE_WELLSPRING7_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 }
|
|
+ },
|
|
{}
|
|
};
|
|
|
|
--
|
|
1.7.7.6
|
|
|