Skip to content

Commit 117bdda

Browse files
Wolfram Sangdlezcano
authored andcommitted
thermal/drivers/rcar_gen3: Fix mapping SoCs to generic Gen4 entry
S4 was added first so it was assumed to be the blueprint for R-Car Gen4. It turned out now, that S4 is a special mix between Gen3 and Gen4. V4H and V4M are the similar ones as confirmed by HW engineers. So, rename the S4 entry to be specific instead of generic. Rename the V4H entry to be the new generic one, so V4M will use it as well now. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20250911070254.2214-2-wsa+renesas@sang-engineering.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 9d522a8 commit 117bdda

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

drivers/thermal/renesas/rcar_gen3_thermal.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ static const struct rcar_gen3_thermal_fuse_default rcar_gen3_thermal_fuse_defaul
371371
},
372372
};
373373

374-
static const struct rcar_gen3_thermal_fuse_default rcar_gen3_thermal_fuse_default_info_v4h = {
374+
static const struct rcar_gen3_thermal_fuse_default rcar_gen3_thermal_fuse_default_info_gen4 = {
375375
.ptat = { 3274, 2164, 985 },
376376
.thcodes = { /* All four THS units share the same trimming */
377377
{ 3218, 2617, 1980 },
@@ -397,20 +397,20 @@ static const struct rcar_thermal_info rcar_gen3_thermal_info = {
397397
.fuse_defaults = &rcar_gen3_thermal_fuse_default_info_gen3,
398398
};
399399

400-
static const struct rcar_thermal_info rcar_gen4_thermal_info = {
400+
static const struct rcar_thermal_info rcar_s4_thermal_info = {
401401
.scale = 167,
402402
.adj_below = -41,
403403
.adj_above = 126,
404404
.fuses = &rcar_gen3_thermal_fuse_info_gen4,
405405
.fuse_defaults = &rcar_gen3_thermal_fuse_default_info_gen3,
406406
};
407407

408-
static const struct rcar_thermal_info rcar_v4h_thermal_info = {
408+
static const struct rcar_thermal_info rcar_gen4_thermal_info = {
409409
.scale = 167,
410410
.adj_below = -41,
411411
.adj_above = 126,
412412
.fuses = &rcar_gen3_thermal_fuse_info_gen4,
413-
.fuse_defaults = &rcar_gen3_thermal_fuse_default_info_v4h,
413+
.fuse_defaults = &rcar_gen3_thermal_fuse_default_info_gen4,
414414
};
415415

416416
static const struct of_device_id rcar_gen3_thermal_dt_ids[] = {
@@ -452,11 +452,11 @@ static const struct of_device_id rcar_gen3_thermal_dt_ids[] = {
452452
},
453453
{
454454
.compatible = "renesas,r8a779f0-thermal",
455-
.data = &rcar_gen4_thermal_info,
455+
.data = &rcar_s4_thermal_info,
456456
},
457457
{
458458
.compatible = "renesas,r8a779g0-thermal",
459-
.data = &rcar_v4h_thermal_info,
459+
.data = &rcar_gen4_thermal_info,
460460
},
461461
{
462462
.compatible = "renesas,r8a779h0-thermal",

0 commit comments

Comments
 (0)