diff mbox

Adding Intel Lewisburg support for iTCO

Message ID 1454625447-27563-1-git-send-email-alexandra.yates@linux.intel.com
State Superseded
Headers show

Commit Message

Alexandra Yates Feb. 4, 2016, 10:37 p.m. UTC
Starting from Intel Sunrisepoint (Skylake PCH) the iTCO watchdog
resources have been moved to reside under the i801 SMBus host
controller whereas previously they were under the LPC device.

This patch adds Intel lewisburg SMBus support for iTCO device.

Signed-off-by: Alexandra Yates <alexandra.yates@linux.intel.com>
---
 drivers/i2c/busses/i2c-i801.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Andy Shevchenko Feb. 4, 2016, 11:07 p.m. UTC | #1
On Fri, Feb 5, 2016 at 12:37 AM, Alexandra Yates
<alexandra.yates@linux.intel.com> wrote:
> Starting from Intel Sunrisepoint (Skylake PCH) the iTCO watchdog
> resources have been moved to reside under the i801 SMBus host
> controller whereas previously they were under the LPC device.
>
> This patch adds Intel lewisburg SMBus support for iTCO device.
>

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>

> Signed-off-by: Alexandra Yates <alexandra.yates@linux.intel.com>
> ---
>  drivers/i2c/busses/i2c-i801.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c
> index f62d697..27fa0cb 100644
> --- a/drivers/i2c/busses/i2c-i801.c
> +++ b/drivers/i2c/busses/i2c-i801.c
> @@ -1271,6 +1271,8 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)
>         switch (dev->device) {
>         case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS:
>         case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS:
> +       case PCI_DEVICE_ID_INTEL_LEWISBURG_SMBUS:
> +       case PCI_DEVICE_ID_INTEL_LEWISBURG_SSKU_SMBUS:
>         case PCI_DEVICE_ID_INTEL_DNV_SMBUS:
>                 priv->features |= FEATURE_I2C_BLOCK_READ;
>                 priv->features |= FEATURE_IRQ;
> --
> 1.9.1
>
diff mbox

Patch

diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c
index f62d697..27fa0cb 100644
--- a/drivers/i2c/busses/i2c-i801.c
+++ b/drivers/i2c/busses/i2c-i801.c
@@ -1271,6 +1271,8 @@  static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)
 	switch (dev->device) {
 	case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS:
 	case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS:
+	case PCI_DEVICE_ID_INTEL_LEWISBURG_SMBUS:
+	case PCI_DEVICE_ID_INTEL_LEWISBURG_SSKU_SMBUS:
 	case PCI_DEVICE_ID_INTEL_DNV_SMBUS:
 		priv->features |= FEATURE_I2C_BLOCK_READ;
 		priv->features |= FEATURE_IRQ;