Skip to content

Commit 40dc192

Browse files
Linux4rafaeljw
authored andcommitted
thermal: intel: intel_pch: Add support for Wellsburg PCH
Add the PCI ID for the Wellsburg C610 series chipset PCH. The driver can read the temperature from the Wellsburg PCH with only the PCI ID added and no other modifications. Signed-off-by: Tim Zimmermann <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 8ef0ca4 commit 40dc192

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/thermal/intel/intel_pch_thermal.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#define PCH_THERMAL_DID_CNL_LP 0x02F9 /* CNL-LP PCH */
3030
#define PCH_THERMAL_DID_CML_H 0X06F9 /* CML-H PCH */
3131
#define PCH_THERMAL_DID_LWB 0xA1B1 /* Lewisburg PCH */
32+
#define PCH_THERMAL_DID_WBG 0x8D24 /* Wellsburg PCH */
3233

3334
/* Wildcat Point-LP PCH Thermal registers */
3435
#define WPT_TEMP 0x0000 /* Temperature */
@@ -350,6 +351,7 @@ enum board_ids {
350351
board_cnl,
351352
board_cml,
352353
board_lwb,
354+
board_wbg,
353355
};
354356

355357
static const struct board_info {
@@ -380,6 +382,10 @@ static const struct board_info {
380382
.name = "pch_lewisburg",
381383
.ops = &pch_dev_ops_wpt,
382384
},
385+
[board_wbg] = {
386+
.name = "pch_wellsburg",
387+
.ops = &pch_dev_ops_wpt,
388+
},
383389
};
384390

385391
static int intel_pch_thermal_probe(struct pci_dev *pdev,
@@ -495,6 +501,8 @@ static const struct pci_device_id intel_pch_thermal_id[] = {
495501
.driver_data = board_cml, },
496502
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_LWB),
497503
.driver_data = board_lwb, },
504+
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_WBG),
505+
.driver_data = board_wbg, },
498506
{ 0, },
499507
};
500508
MODULE_DEVICE_TABLE(pci, intel_pch_thermal_id);

0 commit comments

Comments
 (0)