thermal/drivers/rcar_gen3_thermal: Add support for hardware trip points
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 4 Aug 2021 09:18:17 +0000 (11:18 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sat, 14 Aug 2021 10:48:00 +0000 (12:48 +0200)
commit47cf09e0f4fc51200ecea15387bec3584562f55d
tree99735bfde2b95a6b0b43ad0d121b4331d5c7444e
parenta414a08aefe6343492b812a50a1b2f3a30ce8b6e
thermal/drivers/rcar_gen3_thermal: Add support for hardware trip points

All supported hardware except V3U is capable of generating interrupts
to the CPU when the temperature go below or above a set value. Use this
to implement support for the set_trip() feature of the thermal core on
supported hardware.

The V3U have its interrupts routed to the ECM module and therefore can
not be used to implement set_trip() as the driver can't be made aware of
when the interrupt triggers.

Each TSC is capable of tracking up-to three different temperatures while
only two are needed to implement the tracking of the thermal window.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210804091818.2196806-2-niklas.soderlund+renesas@ragnatech.se
drivers/thermal/rcar_gen3_thermal.c