Re: [PATCH 6/6] thermal: Add Tegra SOCTHERM thermal management driver

2014-07-04 Thread Mikko Perttunen
On 04/07/14 11:43, Wei Ni wrote: On 06/27/2014 04:11 PM, Mikko Perttunen wrote: This adds support for the Tegra SOCTHERM thermal sensing and management system found in the Tegra124 system-on-chip. This initial driver supports the four thermal zones with hardware-tracked trip points. diff --gi

Re: [PATCH 6/6] thermal: Add Tegra SOCTHERM thermal management driver

2014-07-04 Thread Wei Ni
On 06/27/2014 04:11 PM, Mikko Perttunen wrote: > This adds support for the Tegra SOCTHERM thermal sensing and management > system found in the Tegra124 system-on-chip. This initial driver supports > the four thermal zones with hardware-tracked trip points. > diff --git a/drivers/thermal/tegra_soct

Re: [PATCH 6/6] thermal: Add Tegra SOCTHERM thermal management driver

2014-07-03 Thread Mikko Perttunen
On 01/07/14 21:26, Stephen Warren wrote: Ah, so there's some manufacturing calibration process that sets some fuse value, and the HW uses a combination of that fuse value, and some parameters of the manufacturing process as represented by the SENSOR_CONFIG2 register, to apply the calibration?

Re: [PATCH 6/6] thermal: Add Tegra SOCTHERM thermal management driver

2014-07-01 Thread Tuomas Tynkkynen
On 27/06/14 11:11, Mikko Perttunen wrote: + /* Sign extend from 6 bits to 32 bits */ + shifted_cp = (s32)((val & 0x1f) | ((val & 0x20) ? 0xffe0 : 0x0)); + val = ((val & (0x1f << 21)) >> 21); + /* Sign extend from 5 bits to 32 bits */ + shifted_ft = (s32)((val & 0

Re: [PATCH 6/6] thermal: Add Tegra SOCTHERM thermal management driver

2014-07-01 Thread Stephen Warren
On 07/01/2014 02:06 AM, Mikko Perttunen wrote: > Inline. > > On 01/07/14 00:23, Stephen Warren wrote: >> On 06/27/2014 02:11 AM, Mikko Perttunen wrote: >>> This adds support for the Tegra SOCTHERM thermal sensing and management >>> system found in the Tegra124 system-on-chip. This initial driver >

Re: [PATCH 6/6] thermal: Add Tegra SOCTHERM thermal management driver

2014-07-01 Thread Mikko Perttunen
Inline. On 01/07/14 00:23, Stephen Warren wrote: On 06/27/2014 02:11 AM, Mikko Perttunen wrote: This adds support for the Tegra SOCTHERM thermal sensing and management system found in the Tegra124 system-on-chip. This initial driver supports the four thermal zones with hardware-tracked trip poi

Re: [PATCH 6/6] thermal: Add Tegra SOCTHERM thermal management driver

2014-06-30 Thread Stephen Warren
On 06/27/2014 02:11 AM, Mikko Perttunen wrote: > This adds support for the Tegra SOCTHERM thermal sensing and management > system found in the Tegra124 system-on-chip. This initial driver supports > the four thermal zones with hardware-tracked trip points. > diff --git a/drivers/thermal/tegra_soct

[PATCH 6/6] thermal: Add Tegra SOCTHERM thermal management driver

2014-06-27 Thread Mikko Perttunen
This adds support for the Tegra SOCTHERM thermal sensing and management system found in the Tegra124 system-on-chip. This initial driver supports the four thermal zones with hardware-tracked trip points. Signed-off-by: Mikko Perttunen --- drivers/thermal/Kconfig | 7 + drivers/thermal