Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

thermal: rcar_gen3_thermal: Add support for up to five TSC nodes

Add support for up to five TSC nodes. The new THCODE values are taken
from the example in the datasheet.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210309162419.2621359-1-niklas.soderlund+renesas@ragnatech.se

authored by

Niklas Söderlund and committed by
Daniel Lezcano
7fd49ca0 76d63295

+2 -1
+2 -1
drivers/thermal/rcar_gen3_thermal.c
··· 60 60 #define MCELSIUS(temp) ((temp) * 1000) 61 61 #define GEN3_FUSE_MASK 0xFFF 62 62 63 - #define TSC_MAX_NUM 4 63 + #define TSC_MAX_NUM 5 64 64 65 65 /* default THCODE values if FUSEs are missing */ 66 66 static const int thcodes[TSC_MAX_NUM][3] = { ··· 68 68 { 3393, 2795, 2216 }, 69 69 { 3389, 2805, 2237 }, 70 70 { 3415, 2694, 2195 }, 71 + { 3356, 2724, 2244 }, 71 72 }; 72 73 73 74 /* Structure for thermal temperature calculation */