forked from mirrors/linux
		
	i2c: i801: Add support for Intel Comet Lake
Add PCI ID for Intel Comet Lake PCH. Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
		
							parent
							
								
									9e98c678c2
								
							
						
					
					
						commit
						5cd1c56c42
					
				
					 3 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -36,6 +36,7 @@ Supported adapters:
 | 
				
			||||||
  * Intel Cannon Lake (PCH)
 | 
					  * Intel Cannon Lake (PCH)
 | 
				
			||||||
  * Intel Cedar Fork (PCH)
 | 
					  * Intel Cedar Fork (PCH)
 | 
				
			||||||
  * Intel Ice Lake (PCH)
 | 
					  * Intel Ice Lake (PCH)
 | 
				
			||||||
 | 
					  * Intel Comet Lake (PCH)
 | 
				
			||||||
   Datasheets: Publicly available at the Intel website
 | 
					   Datasheets: Publicly available at the Intel website
 | 
				
			||||||
 | 
					
 | 
				
			||||||
On Intel Patsburg and later chipsets, both the normal host SMBus controller
 | 
					On Intel Patsburg and later chipsets, both the normal host SMBus controller
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -131,6 +131,7 @@ config I2C_I801
 | 
				
			||||||
	    Cannon Lake (PCH)
 | 
						    Cannon Lake (PCH)
 | 
				
			||||||
	    Cedar Fork (PCH)
 | 
						    Cedar Fork (PCH)
 | 
				
			||||||
	    Ice Lake (PCH)
 | 
						    Ice Lake (PCH)
 | 
				
			||||||
 | 
						    Comet Lake (PCH)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	  This driver can also be built as a module.  If so, the module
 | 
						  This driver can also be built as a module.  If so, the module
 | 
				
			||||||
	  will be called i2c-i801.
 | 
						  will be called i2c-i801.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -71,6 +71,7 @@
 | 
				
			||||||
 * Cannon Lake-LP (PCH)		0x9da3	32	hard	yes	yes	yes
 | 
					 * Cannon Lake-LP (PCH)		0x9da3	32	hard	yes	yes	yes
 | 
				
			||||||
 * Cedar Fork (PCH)		0x18df	32	hard	yes	yes	yes
 | 
					 * Cedar Fork (PCH)		0x18df	32	hard	yes	yes	yes
 | 
				
			||||||
 * Ice Lake-LP (PCH)		0x34a3	32	hard	yes	yes	yes
 | 
					 * Ice Lake-LP (PCH)		0x34a3	32	hard	yes	yes	yes
 | 
				
			||||||
 | 
					 * Comet Lake (PCH)		0x02a3	32	hard	yes	yes	yes
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Features supported by this driver:
 | 
					 * Features supported by this driver:
 | 
				
			||||||
 * Software PEC				no
 | 
					 * Software PEC				no
 | 
				
			||||||
| 
						 | 
					@ -240,6 +241,7 @@
 | 
				
			||||||
#define PCI_DEVICE_ID_INTEL_LEWISBURG_SSKU_SMBUS	0xa223
 | 
					#define PCI_DEVICE_ID_INTEL_LEWISBURG_SSKU_SMBUS	0xa223
 | 
				
			||||||
#define PCI_DEVICE_ID_INTEL_KABYLAKE_PCH_H_SMBUS	0xa2a3
 | 
					#define PCI_DEVICE_ID_INTEL_KABYLAKE_PCH_H_SMBUS	0xa2a3
 | 
				
			||||||
#define PCI_DEVICE_ID_INTEL_CANNONLAKE_H_SMBUS		0xa323
 | 
					#define PCI_DEVICE_ID_INTEL_CANNONLAKE_H_SMBUS		0xa323
 | 
				
			||||||
 | 
					#define PCI_DEVICE_ID_INTEL_COMETLAKE_SMBUS		0x02a3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct i801_mux_config {
 | 
					struct i801_mux_config {
 | 
				
			||||||
	char *gpio_chip;
 | 
						char *gpio_chip;
 | 
				
			||||||
| 
						 | 
					@ -1038,6 +1040,7 @@ static const struct pci_device_id i801_ids[] = {
 | 
				
			||||||
	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CANNONLAKE_H_SMBUS) },
 | 
						{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CANNONLAKE_H_SMBUS) },
 | 
				
			||||||
	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CANNONLAKE_LP_SMBUS) },
 | 
						{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CANNONLAKE_LP_SMBUS) },
 | 
				
			||||||
	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICELAKE_LP_SMBUS) },
 | 
						{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICELAKE_LP_SMBUS) },
 | 
				
			||||||
 | 
						{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_COMETLAKE_SMBUS) },
 | 
				
			||||||
	{ 0, }
 | 
						{ 0, }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1534,6 +1537,7 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)
 | 
				
			||||||
	case PCI_DEVICE_ID_INTEL_DNV_SMBUS:
 | 
						case PCI_DEVICE_ID_INTEL_DNV_SMBUS:
 | 
				
			||||||
	case PCI_DEVICE_ID_INTEL_KABYLAKE_PCH_H_SMBUS:
 | 
						case PCI_DEVICE_ID_INTEL_KABYLAKE_PCH_H_SMBUS:
 | 
				
			||||||
	case PCI_DEVICE_ID_INTEL_ICELAKE_LP_SMBUS:
 | 
						case PCI_DEVICE_ID_INTEL_ICELAKE_LP_SMBUS:
 | 
				
			||||||
 | 
						case PCI_DEVICE_ID_INTEL_COMETLAKE_SMBUS:
 | 
				
			||||||
		priv->features |= FEATURE_I2C_BLOCK_READ;
 | 
							priv->features |= FEATURE_I2C_BLOCK_READ;
 | 
				
			||||||
		priv->features |= FEATURE_IRQ;
 | 
							priv->features |= FEATURE_IRQ;
 | 
				
			||||||
		priv->features |= FEATURE_SMBUS_PEC;
 | 
							priv->features |= FEATURE_SMBUS_PEC;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue