Skip to content

Commit 09daf8f

Browse files
ffainellidlezcano
authored andcommitted
thermal/drivers/brcmstb_thermal: Add support for BCM74110
BCM74110 uses a different process node compared to previous chips that requires a different equation, account for that. Signed-off-by: Florian Fainelli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent 2395a02 commit 09daf8f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

drivers/thermal/broadcom/brcmstb_thermal.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,14 +286,20 @@ static int brcmstb_set_trips(struct thermal_zone_device *tz, int low, int high)
286286
return 0;
287287
}
288288

289-
static const struct thermal_zone_device_ops brcmstb_16nm_of_ops = {
289+
static const struct thermal_zone_device_ops brcmstb_of_ops = {
290290
.get_temp = brcmstb_get_temp,
291291
};
292292

293+
static const struct brcmstb_thermal_params brcmstb_8nm_params = {
294+
.offset = 418670,
295+
.mult = 509,
296+
.of_ops = &brcmstb_of_ops,
297+
};
298+
293299
static const struct brcmstb_thermal_params brcmstb_16nm_params = {
294300
.offset = 457829,
295301
.mult = 557,
296-
.of_ops = &brcmstb_16nm_of_ops,
302+
.of_ops = &brcmstb_of_ops,
297303
};
298304

299305
static const struct thermal_zone_device_ops brcmstb_28nm_of_ops = {
@@ -308,6 +314,7 @@ static const struct brcmstb_thermal_params brcmstb_28nm_params = {
308314
};
309315

310316
static const struct of_device_id brcmstb_thermal_id_table[] = {
317+
{ .compatible = "brcm,avs-tmon-bcm74110", .data = &brcmstb_8nm_params },
311318
{ .compatible = "brcm,avs-tmon-bcm7216", .data = &brcmstb_16nm_params },
312319
{ .compatible = "brcm,avs-tmon", .data = &brcmstb_28nm_params },
313320
{},

0 commit comments

Comments
 (0)