2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-04 03:33:58 +08:00
linux-next/drivers/thermal/qcom
Amit Kucheria 634e11d5b4 drivers: thermal: tsens: Add interrupt support
Depending on the IP version, TSENS supports upper, lower and critical
threshold interrupts. We only add support for upper and lower threshold
interrupts for now.

TSENSv2 has an irq [status|clear|mask] bit tuple for each sensor while
earlier versions only have a single bit per sensor to denote status and
clear. These differences are handled transparently by the interrupt
handler. At each interrupt, we reprogram the new upper and lower threshold
in the .set_trip callback.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/7508ba143f144407e5dd546107ddae65c380a76f.1572526427.git.amit.kucheria@linaro.org
2019-11-07 07:00:26 +01:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
qcom-spmi-temp-alarm.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
tsens-8960.c drivers: thermal: tsens: Get rid of id field in tsens_sensor 2019-11-07 07:00:26 +01:00
tsens-common.c drivers: thermal: tsens: Add interrupt support 2019-11-07 07:00:26 +01:00
tsens-v0_1.c drivers: thermal: tsens: Add interrupt support 2019-11-07 07:00:26 +01:00
tsens-v1.c drivers: thermal: tsens: Add interrupt support 2019-11-07 07:00:26 +01:00
tsens-v2.c drivers: thermal: tsens: Add interrupt support 2019-11-07 07:00:26 +01:00
tsens.c drivers: thermal: tsens: Add interrupt support 2019-11-07 07:00:26 +01:00
tsens.h drivers: thermal: tsens: Add interrupt support 2019-11-07 07:00:26 +01:00