Skip to content

Commit

Permalink
ARM: mvebu: use the cpufreq-dt platform_data for independent clocks
Browse files Browse the repository at this point in the history
This commit adjusts the registration of the cpufreq-dt driver in the
mvebu platform to indicate to the cpufreq driver that the platform has
independent clocks for each CPU.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Thomas Petazzoni authored and Arnd Bergmann committed Dec 4, 2014
1 parent c747803 commit 842f7d2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion arch/arm/mach-mvebu/pmsu.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <linux/clk.h>
#include <linux/cpu_pm.h>
#include <linux/cpufreq-dt.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/io.h>
Expand Down Expand Up @@ -571,6 +572,10 @@ int mvebu_pmsu_dfs_request(int cpu)
return 0;
}

struct cpufreq_dt_platform_data cpufreq_dt_pd = {
.independent_clocks = true,
};

static int __init armada_xp_pmsu_cpufreq_init(void)
{
struct device_node *np;
Expand Down Expand Up @@ -643,7 +648,8 @@ static int __init armada_xp_pmsu_cpufreq_init(void)
}
}

platform_device_register_simple("cpufreq-dt", -1, NULL, 0);
platform_device_register_data(NULL, "cpufreq-dt", -1,
&cpufreq_dt_pd, sizeof(cpufreq_dt_pd));
return 0;
}

Expand Down

0 comments on commit 842f7d2

Please sign in to comment.