aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2017-11-01 12:39:51 -0400
committerZhang Rui <rui.zhang@intel.com>2017-11-02 04:30:44 -0400
commit6ed5ed14e25914dab92ed492565f6feb80ae0559 (patch)
tree614f0ca862fb2ee739e77f2e222ac5db226d28d7
parenteea4a69a4636867b18b6ba414b964cdc21c53789 (diff)
thermal: pch: Add Cannon Lake support
Added Cannon Lake PCH ids. 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.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/thermal/intel_pch_thermal.c b/drivers/thermal/intel_pch_thermal.c
index c60b1cfcc64e..8a7f69b4b022 100644
--- a/drivers/thermal/intel_pch_thermal.c
+++ b/drivers/thermal/intel_pch_thermal.c
@@ -30,6 +30,8 @@
30#define PCH_THERMAL_DID_WPT 0x9CA4 /* Wildcat Point */ 30#define PCH_THERMAL_DID_WPT 0x9CA4 /* Wildcat Point */
31#define PCH_THERMAL_DID_SKL 0x9D31 /* Skylake PCH */ 31#define PCH_THERMAL_DID_SKL 0x9D31 /* Skylake PCH */
32#define PCH_THERMAL_DID_SKL_H 0xA131 /* Skylake PCH 100 series */ 32#define PCH_THERMAL_DID_SKL_H 0xA131 /* Skylake PCH 100 series */
33#define PCH_THERMAL_DID_CNL 0x9Df9 /* CNL PCH */
34#define PCH_THERMAL_DID_CNL_H 0xA379 /* CNL-H PCH */
33 35
34/* Wildcat Point-LP PCH Thermal registers */ 36/* Wildcat Point-LP PCH Thermal registers */
35#define WPT_TEMP 0x0000 /* Temperature */ 37#define WPT_TEMP 0x0000 /* Temperature */
@@ -278,6 +280,7 @@ enum board_ids {
278 board_hsw, 280 board_hsw,
279 board_wpt, 281 board_wpt,
280 board_skl, 282 board_skl,
283 board_cnl,
281}; 284};
282 285
283static const struct board_info { 286static const struct board_info {
@@ -296,6 +299,10 @@ static const struct board_info {
296 .name = "pch_skylake", 299 .name = "pch_skylake",
297 .ops = &pch_dev_ops_wpt, 300 .ops = &pch_dev_ops_wpt,
298 }, 301 },
302 [board_cnl] = {
303 .name = "pch_cannonlake",
304 .ops = &pch_dev_ops_wpt,
305 },
299}; 306};
300 307
301static int intel_pch_thermal_probe(struct pci_dev *pdev, 308static int intel_pch_thermal_probe(struct pci_dev *pdev,
@@ -398,6 +405,10 @@ static const struct pci_device_id intel_pch_thermal_id[] = {
398 .driver_data = board_skl, }, 405 .driver_data = board_skl, },
399 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_SKL_H), 406 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_SKL_H),
400 .driver_data = board_skl, }, 407 .driver_data = board_skl, },
408 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_CNL),
409 .driver_data = board_cnl, },
410 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_CNL_H),
411 .driver_data = board_cnl, },
401 { 0, }, 412 { 0, },
402}; 413};
403MODULE_DEVICE_TABLE(pci, intel_pch_thermal_id); 414MODULE_DEVICE_TABLE(pci, intel_pch_thermal_id);