1
0
Fork 0

MLK-16526-2 thermal: qoriq: add buffer for passive cooling mechanism

On i.MX8MQ, When temperature exceeds passive point,
the cooling mechanism will be trigger and temperature
will begin to drop, to avoid back and forth surrounding
the passive point, here adds 10 C buffer for passive point,
that means when cooling mechanism is trigger, only after
the temperature drop to 10 C below the passive point,
the cooling mechanism will exit.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
pull/10/head
Anson Huang 2017-09-22 12:11:22 +08:00 committed by Jason Liu
parent 1c89dc608d
commit 4f85b4294a
1 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,8 @@
#define SITES_MAX 16
#define TMU_TEMP_PASSIVE_COOL_DELTA 10000
/*
* QorIQ TMU Registers
*/
@ -211,7 +213,8 @@ static int tmu_get_trend(void *p,
trip_temp = (trip == TMU_TRIP_PASSIVE) ? data->temp_passive :
data->temp_critical;
if (data->tz->temperature >= trip_temp)
if (data->tz->temperature >=
(trip_temp - TMU_TEMP_PASSIVE_COOL_DELTA))
*trend = THERMAL_TREND_RAISE_FULL;
else
*trend = THERMAL_TREND_DROP_FULL;