summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>2021-03-09 17:24:19 +0100
committerDaniel Lezcano <daniel.lezcano@linaro.org>2021-03-10 12:58:28 +0100
commit7fd49ca05be35a85c424a3ca8df931bd70c34535 (patch)
tree59648aa93d35b9a732e442e9b270224f0451e701
parent76d6329534ae3b2f344aa72cc978ef4cfd69c0c8 (diff)
downloadlinux-7fd49ca05be35a85c424a3ca8df931bd70c34535.tar.gz
linux-7fd49ca05be35a85c424a3ca8df931bd70c34535.tar.bz2
linux-7fd49ca05be35a85c424a3ca8df931bd70c34535.zip
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
-rw-r--r--drivers/thermal/rcar_gen3_thermal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/thermal/rcar_gen3_thermal.c b/drivers/thermal/rcar_gen3_thermal.c
index 75c69fe6e955..e1e412348076 100644
--- a/drivers/thermal/rcar_gen3_thermal.c
+++ b/drivers/thermal/rcar_gen3_thermal.c
@@ -60,7 +60,7 @@
#define MCELSIUS(temp) ((temp) * 1000)
#define GEN3_FUSE_MASK 0xFFF
-#define TSC_MAX_NUM 4
+#define TSC_MAX_NUM 5
/* default THCODE values if FUSEs are missing */
static const int thcodes[TSC_MAX_NUM][3] = {
@@ -68,6 +68,7 @@ static const int thcodes[TSC_MAX_NUM][3] = {
{ 3393, 2795, 2216 },
{ 3389, 2805, 2237 },
{ 3415, 2694, 2195 },
+ { 3356, 2724, 2244 },
};
/* Structure for thermal temperature calculation */