]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.10.42/i2c-i801-enable-intel-baytrail-smbus.patch
drop queue-4.14/mips-make-sure-dt-memory-regions-are-valid.patch
[thirdparty/kernel/stable-queue.git] / releases / 3.10.42 / i2c-i801-enable-intel-baytrail-smbus.patch
1 From 1b31e9b76ef8c62291e698dfdb973499986a7f68 Mon Sep 17 00:00:00 2001
2 From: "Chew, Kean ho" <kean.ho.chew@intel.com>
3 Date: Sat, 1 Mar 2014 00:03:56 +0800
4 Subject: i2c: i801: enable Intel BayTrail SMBUS
5
6 From: "Chew, Kean ho" <kean.ho.chew@intel.com>
7
8 commit 1b31e9b76ef8c62291e698dfdb973499986a7f68 upstream.
9
10 Add Device ID of Intel BayTrail SMBus Controller.
11
12 Signed-off-by: Chew, Kean ho <kean.ho.chew@intel.com>
13 Signed-off-by: Chew, Chiau Ee <chiau.ee.chew@intel.com>
14 Reviewed-by: Jean Delvare <jdelvare@suse.de>
15 Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
16 Cc: "Chang, Rebecca Swee Fun" <rebecca.swee.fun.chang@intel.com>
17 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18
19 ---
20 Documentation/i2c/busses/i2c-i801 | 1 +
21 drivers/i2c/busses/Kconfig | 1 +
22 drivers/i2c/busses/i2c-i801.c | 3 +++
23 3 files changed, 5 insertions(+)
24
25 --- a/Documentation/i2c/busses/i2c-i801
26 +++ b/Documentation/i2c/busses/i2c-i801
27 @@ -26,6 +26,7 @@ Supported adapters:
28 * Intel Wellsburg (PCH)
29 * Intel Coleto Creek (PCH)
30 * Intel Wildcat Point-LP (PCH)
31 + * Intel BayTrail (SOC)
32 Datasheets: Publicly available at the Intel website
33
34 On Intel Patsburg and later chipsets, both the normal host SMBus controller
35 --- a/drivers/i2c/busses/Kconfig
36 +++ b/drivers/i2c/busses/Kconfig
37 @@ -110,6 +110,7 @@ config I2C_I801
38 Wellsburg (PCH)
39 Coleto Creek (PCH)
40 Wildcat Point-LP (PCH)
41 + BayTrail (SOC)
42
43 This driver can also be built as a module. If so, the module
44 will be called i2c-i801.
45 --- a/drivers/i2c/busses/i2c-i801.c
46 +++ b/drivers/i2c/busses/i2c-i801.c
47 @@ -60,6 +60,7 @@
48 Wellsburg (PCH) MS 0x8d7f 32 hard yes yes yes
49 Coleto Creek (PCH) 0x23b0 32 hard yes yes yes
50 Wildcat Point-LP (PCH) 0x9ca2 32 hard yes yes yes
51 + BayTrail (SOC) 0x0f12 32 hard yes yes yes
52
53 Features supported by this driver:
54 Software PEC no
55 @@ -162,6 +163,7 @@
56 STATUS_ERROR_FLAGS)
57
58 /* Older devices have their ID defined in <linux/pci_ids.h> */
59 +#define PCI_DEVICE_ID_INTEL_BAYTRAIL_SMBUS 0x0f12
60 #define PCI_DEVICE_ID_INTEL_COUGARPOINT_SMBUS 0x1c22
61 #define PCI_DEVICE_ID_INTEL_PATSBURG_SMBUS 0x1d22
62 /* Patsburg also has three 'Integrated Device Function' SMBus controllers */
63 @@ -823,6 +825,7 @@ static DEFINE_PCI_DEVICE_TABLE(i801_ids)
64 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_WELLSBURG_SMBUS_MS2) },
65 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_COLETOCREEK_SMBUS) },
66 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_WILDCATPOINT_LP_SMBUS) },
67 + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BAYTRAIL_SMBUS) },
68 { 0, }
69 };
70