Skip to content

Commit f43e2b9

Browse files
Alain Volmatgregkh
authored andcommitted
cpufreq: sti-cpufreq: add stih418 support
[ Upstream commit 01a163c ] The STiH418 can be controlled the same way as STiH407 & STiH410 regarding cpufreq. Signed-off-by: Alain Volmat <avolmat@me.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 68f513d commit f43e2b9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

drivers/cpufreq/sti-cpufreq.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ static const struct reg_field sti_stih407_dvfs_regfields[DVFS_MAX_REGFIELDS] = {
141141
static const struct reg_field *sti_cpufreq_match(void)
142142
{
143143
if (of_machine_is_compatible("st,stih407") ||
144-
of_machine_is_compatible("st,stih410"))
144+
of_machine_is_compatible("st,stih410") ||
145+
of_machine_is_compatible("st,stih418"))
145146
return sti_stih407_dvfs_regfields;
146147

147148
return NULL;
@@ -258,7 +259,8 @@ static int sti_cpufreq_init(void)
258259
int ret;
259260

260261
if ((!of_machine_is_compatible("st,stih407")) &&
261-
(!of_machine_is_compatible("st,stih410")))
262+
(!of_machine_is_compatible("st,stih410")) &&
263+
(!of_machine_is_compatible("st,stih418")))
262264
return -ENODEV;
263265

264266
ddata.cpu = get_cpu_device(0);

0 commit comments

Comments
 (0)