Skip to content

Commit 634e11d

Browse files
idlethreaddlezcano
authored andcommitted
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 <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/7508ba143f144407e5dd546107ddae65c380a76f.1572526427.git.amit.kucheria@linaro.org
1 parent bd93ee3 commit 634e11d

File tree

6 files changed

+669
-63
lines changed

6 files changed

+669
-63
lines changed

0 commit comments

Comments
 (0)