Skip to content

Commit cb09d94

Browse files
jhnikulaWolfram Sang
authored andcommitted
i2c: i801: Add support for Intel Cedar Fork
Add PCI ID for Intel Cedar Fork PCH. Signed-off-by: Jarkko Nikula <[email protected]> Reviewed-by: Jean Delvare <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 463a921 commit cb09d94

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Documentation/i2c/busses/i2c-i801

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Supported adapters:
3636
* Intel Gemini Lake (SOC)
3737
* Intel Cannon Lake-H (PCH)
3838
* Intel Cannon Lake-LP (PCH)
39+
* Intel Cedar Fork (PCH)
3940
Datasheets: Publicly available at the Intel website
4041

4142
On Intel Patsburg and later chipsets, both the normal host SMBus controller

drivers/i2c/busses/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ config I2C_I801
131131
Gemini Lake (SOC)
132132
Cannon Lake-H (PCH)
133133
Cannon Lake-LP (PCH)
134+
Cedar Fork (PCH)
134135

135136
This driver can also be built as a module. If so, the module
136137
will be called i2c-i801.

drivers/i2c/busses/i2c-i801.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
* Gemini Lake (SOC) 0x31d4 32 hard yes yes yes
6969
* Cannon Lake-H (PCH) 0xa323 32 hard yes yes yes
7070
* Cannon Lake-LP (PCH) 0x9da3 32 hard yes yes yes
71+
* Cedar Fork (PCH) 0x18df 32 hard yes yes yes
7172
*
7273
* Features supported by this driver:
7374
* Software PEC no
@@ -204,6 +205,7 @@
204205

205206
/* Older devices have their ID defined in <linux/pci_ids.h> */
206207
#define PCI_DEVICE_ID_INTEL_BAYTRAIL_SMBUS 0x0f12
208+
#define PCI_DEVICE_ID_INTEL_CDF_SMBUS 0x18df
207209
#define PCI_DEVICE_ID_INTEL_DNV_SMBUS 0x19df
208210
#define PCI_DEVICE_ID_INTEL_COUGARPOINT_SMBUS 0x1c22
209211
#define PCI_DEVICE_ID_INTEL_PATSBURG_SMBUS 0x1d22
@@ -1025,6 +1027,7 @@ static const struct pci_device_id i801_ids[] = {
10251027
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BRASWELL_SMBUS) },
10261028
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS) },
10271029
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS) },
1030+
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CDF_SMBUS) },
10281031
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_DNV_SMBUS) },
10291032
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BROXTON_SMBUS) },
10301033
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_LEWISBURG_SMBUS) },
@@ -1513,6 +1516,7 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)
15131516
case PCI_DEVICE_ID_INTEL_CANNONLAKE_LP_SMBUS:
15141517
case PCI_DEVICE_ID_INTEL_LEWISBURG_SMBUS:
15151518
case PCI_DEVICE_ID_INTEL_LEWISBURG_SSKU_SMBUS:
1519+
case PCI_DEVICE_ID_INTEL_CDF_SMBUS:
15161520
case PCI_DEVICE_ID_INTEL_DNV_SMBUS:
15171521
case PCI_DEVICE_ID_INTEL_KABYLAKE_PCH_H_SMBUS:
15181522
priv->features |= FEATURE_I2C_BLOCK_READ;

0 commit comments

Comments
 (0)