thermal: int340x: processor_thermal: Add Jasper Lake support
diff mbox series

Message ID 20191212203025.36310-1-srinivas.pandruvada@linux.intel.com
State Accepted
Commit f64a6583d3f527b297b88441e1c20e6ed45f8f56
Headers show
Series
  • thermal: int340x: processor_thermal: Add Jasper Lake support
Related show

Commit Message

Srinivas Pandruvada Dec. 12, 2019, 8:30 p.m. UTC
From: "Swaminathan, Nivedita" <nivedita.swaminathan@intel.com>

Added new PCI id for Jasper Lake processor thermal device.

Signed-off-by: Swaminathan, Nivedita <nivedita.swaminathan@intel.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
---
 .../thermal/intel/int340x_thermal/processor_thermal_device.c  | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Zhang Rui Jan. 16, 2020, 6:55 a.m. UTC | #1
On Thu, 2019-12-12 at 12:30 -0800, Srinivas Pandruvada wrote:
> From: "Swaminathan, Nivedita" <nivedita.swaminathan@intel.com>
> 
> Added new PCI id for Jasper Lake processor thermal device.
> 
> Signed-off-by: Swaminathan, Nivedita <nivedita.swaminathan@intel.com>
> Signed-off-by: Srinivas Pandruvada <
> srinivas.pandruvada@linux.intel.com>

Acked-by: Zhang Rui <rui.zhang@intel.com>
> ---
>  .../thermal/intel/int340x_thermal/processor_thermal_device.c  | 4
> ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git
> a/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
> b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
> index 89a015387283..b1fd34516e28 100644
> ---
> a/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
> +++
> b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
> @@ -42,6 +42,9 @@
>  /* IceLake thermal reporting device */
>  #define PCI_DEVICE_ID_PROC_ICL_THERMAL	0x8a03
>  
> +/* JasperLake thermal reporting device */
> +#define PCI_DEVICE_ID_PROC_JSL_THERMAL	0x4503
> +
>  #define DRV_NAME "proc_thermal"
>  
>  struct power_config {
> @@ -724,6 +727,7 @@ static const struct pci_device_id
> proc_thermal_pci_ids[] = {
>  	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> PCI_DEVICE_ID_PROC_GLK_THERMAL)},
>  	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> PCI_DEVICE_ID_PROC_ICL_THERMAL),
>  		.driver_data = (kernel_ulong_t)&rapl_mmio_hsw, },
> +	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> PCI_DEVICE_ID_PROC_JSL_THERMAL)},
>  	{ 0, },
>  };
>

Patch
diff mbox series

diff --git a/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
index 89a015387283..b1fd34516e28 100644
--- a/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
+++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
@@ -42,6 +42,9 @@ 
 /* IceLake thermal reporting device */
 #define PCI_DEVICE_ID_PROC_ICL_THERMAL	0x8a03
 
+/* JasperLake thermal reporting device */
+#define PCI_DEVICE_ID_PROC_JSL_THERMAL	0x4503
+
 #define DRV_NAME "proc_thermal"
 
 struct power_config {
@@ -724,6 +727,7 @@  static const struct pci_device_id proc_thermal_pci_ids[] = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_GLK_THERMAL)},
 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_ICL_THERMAL),
 		.driver_data = (kernel_ulong_t)&rapl_mmio_hsw, },
+	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_JSL_THERMAL)},
 	{ 0, },
 };