diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2016-10-03 15:36:02 -0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2016-10-20 02:15:44 -0400 |
commit | 33086a9a3071812a829d4b63bed826736a5d8b17 (patch) | |
tree | 3ce2c2a684b9a04ecc1ca0d2d088ba52bd0b1f03 | |
parent | aed3f249f93fe15f16242bbd4e6c3931674b8d91 (diff) |
thermal: intel_pch_thermal: Enable Haswell PCH
Added missing support for Haswell PCH thermal sensor.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
-rw-r--r-- | drivers/thermal/intel_pch_thermal.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/thermal/intel_pch_thermal.c b/drivers/thermal/intel_pch_thermal.c index 5cf644a2c012..19bf2028e508 100644 --- a/drivers/thermal/intel_pch_thermal.c +++ b/drivers/thermal/intel_pch_thermal.c | |||
@@ -25,6 +25,8 @@ | |||
25 | #include <linux/pm.h> | 25 | #include <linux/pm.h> |
26 | 26 | ||
27 | /* Intel PCH thermal Device IDs */ | 27 | /* Intel PCH thermal Device IDs */ |
28 | #define PCH_THERMAL_DID_HSW_1 0x9C24 /* Haswell PCH */ | ||
29 | #define PCH_THERMAL_DID_HSW_2 0x8C24 /* Haswell PCH */ | ||
28 | #define PCH_THERMAL_DID_WPT 0x9CA4 /* Wildcat Point */ | 30 | #define PCH_THERMAL_DID_WPT 0x9CA4 /* Wildcat Point */ |
29 | #define PCH_THERMAL_DID_SKL 0x9D31 /* Skylake PCH */ | 31 | #define PCH_THERMAL_DID_SKL 0x9D31 /* Skylake PCH */ |
30 | 32 | ||
@@ -293,6 +295,11 @@ static int intel_pch_thermal_probe(struct pci_dev *pdev, | |||
293 | ptd->ops = &pch_dev_ops_wpt; | 295 | ptd->ops = &pch_dev_ops_wpt; |
294 | dev_name = "pch_skylake"; | 296 | dev_name = "pch_skylake"; |
295 | break; | 297 | break; |
298 | case PCH_THERMAL_DID_HSW_1: | ||
299 | case PCH_THERMAL_DID_HSW_2: | ||
300 | ptd->ops = &pch_dev_ops_wpt; | ||
301 | dev_name = "pch_haswell"; | ||
302 | break; | ||
296 | default: | 303 | default: |
297 | dev_err(&pdev->dev, "unknown pch thermal device\n"); | 304 | dev_err(&pdev->dev, "unknown pch thermal device\n"); |
298 | return -ENODEV; | 305 | return -ENODEV; |
@@ -375,6 +382,8 @@ static int intel_pch_thermal_resume(struct device *device) | |||
375 | static struct pci_device_id intel_pch_thermal_id[] = { | 382 | static struct pci_device_id intel_pch_thermal_id[] = { |
376 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_WPT) }, | 383 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_WPT) }, |
377 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_SKL) }, | 384 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_SKL) }, |
385 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_HSW_1) }, | ||
386 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_HSW_2) }, | ||
378 | { 0, }, | 387 | { 0, }, |
379 | }; | 388 | }; |
380 | MODULE_DEVICE_TABLE(pci, intel_pch_thermal_id); | 389 | MODULE_DEVICE_TABLE(pci, intel_pch_thermal_id); |