Skip to content

Commit 7fcd7df

Browse files
rockosovdlezcano
authored andcommitted
thermal/drivers/amlogic: Support A1 SoC family Thermal Sensor controller
In comparison to other Amlogic chips, there is one key difference. The offset for the sec_ao base, also known as u_efuse_off, is special, while other aspects remain the same. Signed-off-by: Dmitry Rokosov <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 63d96b1 commit 7fcd7df

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/thermal/amlogic_thermal.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,12 @@ static const struct amlogic_thermal_data amlogic_thermal_g12a_ddr_param = {
220220
.regmap_config = &amlogic_thermal_regmap_config_g12a,
221221
};
222222

223+
static const struct amlogic_thermal_data amlogic_thermal_a1_cpu_param = {
224+
.u_efuse_off = 0x114,
225+
.calibration_parameters = &amlogic_thermal_g12a,
226+
.regmap_config = &amlogic_thermal_regmap_config_g12a,
227+
};
228+
223229
static const struct of_device_id of_amlogic_thermal_match[] = {
224230
{
225231
.compatible = "amlogic,g12a-ddr-thermal",
@@ -229,6 +235,10 @@ static const struct of_device_id of_amlogic_thermal_match[] = {
229235
.compatible = "amlogic,g12a-cpu-thermal",
230236
.data = &amlogic_thermal_g12a_cpu_param,
231237
},
238+
{
239+
.compatible = "amlogic,a1-cpu-thermal",
240+
.data = &amlogic_thermal_a1_cpu_param,
241+
},
232242
{ /* sentinel */ }
233243
};
234244
MODULE_DEVICE_TABLE(of, of_amlogic_thermal_match);

0 commit comments

Comments
 (0)