drivers: thermal: tsens: Add critical interrupt support
authorAmit Kucheria <amit.kucheria@linaro.org>
Thu, 12 Mar 2020 12:37:02 +0000 (18:07 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 20 Mar 2020 11:17:48 +0000 (12:17 +0100)
commit79125e03dbfc7148361787783c8a82a7ed60c718
treec8acb0fa9d05376e1322b9ef6f48098bc9bb76fd
parentf22a3bf0d2225fba438c46a25d3ab8823585a5e0
drivers: thermal: tsens: Add critical interrupt support

TSENS IP v2.x adds critical threshold interrupt support for each sensor
in addition to the upper/lower threshold interrupt. Add support in the
driver.

While the critical interrupts themselves aren't currently used by Linux,
the HW line is also used by the TSENS watchdog. So this patch acts as
infrastructure to enable watchdog functionality for the TSENS IP.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/51b22461d4b5f85a817274568459db4579fd4298.1584015867.git.amit.kucheria@linaro.org
drivers/thermal/qcom/tsens-common.c
drivers/thermal/qcom/tsens-v2.c
drivers/thermal/qcom/tsens.c
drivers/thermal/qcom/tsens.h