diff mbox series

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

Message ID 20210309162419.2621359-1-niklas.soderlund+renesas@ragnatech.se (mailing list archive)
State New, archived
Delegated to: Daniel Lezcano
Headers show
Series thermal: rcar_gen3_thermal: Add support for up to five TSC nodes | expand

Commit Message

Niklas Söderlund March 9, 2021, 4:24 p.m. UTC
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>
---
 drivers/thermal/rcar_gen3_thermal.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Geert Uytterhoeven March 10, 2021, 10:11 a.m. UTC | #1
Hi Niklas,

On Tue, Mar 9, 2021 at 5:25 PM Niklas Söderlund
<niklas.soderlund+renesas@ragnatech.se> wrote:
> 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>

Thanks for your patch!

> --- 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

Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>

> @@ -68,6 +68,7 @@ static const int thcodes[TSC_MAX_NUM][3] = {
>         { 3393, 2795, 2216 },
>         { 3389, 2805, 2237 },
>         { 3415, 2694, 2195 },
> +       { 3356, 2724, 2244 },
>  };

I cannot comment on the actual values, though.

Gr{oetje,eeting}s,

                        Geert
Daniel Lezcano March 10, 2021, 11:58 a.m. UTC | #2
On 09/03/2021 17:24, Niklas Söderlund wrote:
> 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>
> ---

Applied, thanks
diff mbox series

Patch

diff --git a/drivers/thermal/rcar_gen3_thermal.c b/drivers/thermal/rcar_gen3_thermal.c
index 75c69fe6e9553f25..e1e412348076b2ff 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 */