Skip to content

Commit 35709c4

Browse files
gkammeladlezcano
authored andcommitted
thermal: intel: intel_pch_thermal: Add Comet Lake (CML) platform support
Add Comet Lake to the list of the platforms to support intel_pch_thermal driver. Cc: Zhang rui <[email protected]> Cc: Srinivas Pandruvada <[email protected]> Signed-off-by: Gayatri Kammela <[email protected]> Acked-by: Zhang Rui <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 66dd8b8 commit 35709c4

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
@@ -23,6 +23,7 @@
2323
#define PCH_THERMAL_DID_SKL_H 0xA131 /* Skylake PCH 100 series */
2424
#define PCH_THERMAL_DID_CNL 0x9Df9 /* CNL PCH */
2525
#define PCH_THERMAL_DID_CNL_H 0xA379 /* CNL-H PCH */
26+
#define PCH_THERMAL_DID_CML_H 0X06F9 /* CML-H PCH */
2627

2728
/* Wildcat Point-LP PCH Thermal registers */
2829
#define WPT_TEMP 0x0000 /* Temperature */
@@ -272,6 +273,7 @@ enum board_ids {
272273
board_wpt,
273274
board_skl,
274275
board_cnl,
276+
board_cml,
275277
};
276278

277279
static const struct board_info {
@@ -294,6 +296,10 @@ static const struct board_info {
294296
.name = "pch_cannonlake",
295297
.ops = &pch_dev_ops_wpt,
296298
},
299+
[board_cml] = {
300+
.name = "pch_cometlake",
301+
.ops = &pch_dev_ops_wpt,
302+
}
297303
};
298304

299305
static int intel_pch_thermal_probe(struct pci_dev *pdev,
@@ -398,6 +404,8 @@ static const struct pci_device_id intel_pch_thermal_id[] = {
398404
.driver_data = board_cnl, },
399405
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_CNL_H),
400406
.driver_data = board_cnl, },
407+
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_CML_H),
408+
.driver_data = board_cml, },
401409
{ 0, },
402410
};
403411
MODULE_DEVICE_TABLE(pci, intel_pch_thermal_id);

0 commit comments

Comments
 (0)