Commit 03fc6cc6 authored by Jarkko Nikula's avatar Jarkko Nikula Committed by Jun Miao
Browse files

i2c: i801: Add support for Intel Birch Stream SoC

mainline inclusion
from mainline-v6.6-rc2
commit 8c56f9ef25a33e51f09a448d25cf863b61c9658d
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I8UU1X
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8c56f9ef25a33e51f09a448d25cf863b61c9658d



--------------------------------

Add SMBus PCI ID on Intel Birch Stream SoC.

Intel-SIG: commit 8c56f9ef25a3 i2c: i801: Add support for Intel Birch Stream SoC

Signed-off-by: default avatarJarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: default avatarAndi Shyti <andi.shyti@kernel.org>
Reviewed-by: default avatarJean Delvare <jdelvare@suse.de>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
[ Jun Miao: amend commit log ]
Signed-off-by: default avatarJun Miao <jun.miao@intel.com>
parent 96d69a08
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ Supported adapters:
  * Intel Jasper Lake (SOC)
  * Intel Emmitsburg (PCH)
  * Intel Alder Lake (PCH)
  * Intel Birch Stream (SOC)

   Datasheets: Publicly available at the Intel website

+1 −0
Original line number Diff line number Diff line
@@ -148,6 +148,7 @@ config I2C_I801
	    Jasper Lake (SOC)
	    Emmitsburg (PCH)
	    Alder Lake (PCH)
	    Birch Stream (SOC)

	  This driver can also be built as a module.  If so, the module
	  will be called i2c-i801.
+4 −0
Original line number Diff line number Diff line
@@ -72,6 +72,7 @@
 * Jasper Lake (SOC)		0x4da3	32	hard	yes	yes	yes
 * Comet Lake-V (PCH)		0xa3a3	32	hard	yes	yes	yes
 * Alder Lake-S (PCH)		0x7aa3	32	hard	yes	yes	yes
 * Birch Stream (SOC)		0x5796	32	hard	yes	yes	yes
 *
 * Features supported by this driver:
 * Software PEC				no
@@ -228,6 +229,7 @@
#define PCI_DEVICE_ID_INTEL_TIGERLAKE_H_SMBUS		0x43a3
#define PCI_DEVICE_ID_INTEL_ELKHART_LAKE_SMBUS		0x4b23
#define PCI_DEVICE_ID_INTEL_JASPER_LAKE_SMBUS		0x4da3
#define PCI_DEVICE_ID_INTEL_BIRCH_STREAM_SMBUS		0x5796
#define PCI_DEVICE_ID_INTEL_BROXTON_SMBUS		0x5ad4
#define PCI_DEVICE_ID_INTEL_ALDER_LAKE_S_SMBUS		0x7aa3
#define PCI_DEVICE_ID_INTEL_LYNXPOINT_SMBUS		0x8c22
@@ -1080,6 +1082,7 @@ static const struct pci_device_id i801_ids[] = {
	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TIGERLAKE_H_SMBUS) },
	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_JASPER_LAKE_SMBUS) },
	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ALDER_LAKE_S_SMBUS) },
	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BIRCH_STREAM_SMBUS) },
	{ 0, }
};

@@ -1769,6 +1772,7 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)
	case PCI_DEVICE_ID_INTEL_JASPER_LAKE_SMBUS:
	case PCI_DEVICE_ID_INTEL_EBG_SMBUS:
	case PCI_DEVICE_ID_INTEL_ALDER_LAKE_S_SMBUS:
	case PCI_DEVICE_ID_INTEL_BIRCH_STREAM_SMBUS:
		priv->features |= FEATURE_BLOCK_PROC;
		priv->features |= FEATURE_I2C_BLOCK_READ;
		priv->features |= FEATURE_IRQ;