summaryrefslogtreecommitdiff
path: root/drivers/thermal/qcom/tsens-v1.c
diff options
context:
space:
mode:
authorRobert Marko <robimarko@gmail.com>2022-08-19 00:02:43 +0200
committerDaniel Lezcano <daniel.lezcano@kernel.org>2022-12-14 15:25:40 +0100
commitf63baced3839f591db76c227e09d47001373d6db (patch)
treed8801f3b02a06c6c330286d9d94bbbfe12c05f4a /drivers/thermal/qcom/tsens-v1.c
parent4360af35273b742ffc6605ce44f37ac654272443 (diff)
thermal/drivers/tsens: Allow configuring min and max trips
IPQ8074 and IPQ6018 dont support negative trip temperatures and support up to 204 degrees C as the max trip temperature. So, instead of always setting the -40 as min and 120 degrees C as max allow it to be configured as part of the features. Signed-off-by: Robert Marko <robimarko@gmail.com> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220818220245.338396-3-robimarko@gmail.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/thermal/qcom/tsens-v1.c')
-rw-r--r--drivers/thermal/qcom/tsens-v1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/thermal/qcom/tsens-v1.c b/drivers/thermal/qcom/tsens-v1.c
index a4f561a6e582..1d7f8a80bd13 100644
--- a/drivers/thermal/qcom/tsens-v1.c
+++ b/drivers/thermal/qcom/tsens-v1.c
@@ -306,6 +306,8 @@ static struct tsens_features tsens_v1_feat = {
.adc = 1,
.srot_split = 1,
.max_sensors = 11,
+ .trip_min_temp = -40000,
+ .trip_max_temp = 120000,
};
static const struct reg_field tsens_v1_regfields[MAX_REGFIELDS] = {