Commit 842f7d2c authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Arnd Bergmann

ARM: mvebu: use the cpufreq-dt platform_data for independent clocks

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: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: default avatarJason Cooper <jason@lakedaemon.net>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent c7478038
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/cpu_pm.h> #include <linux/cpu_pm.h>
#include <linux/cpufreq-dt.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/io.h> #include <linux/io.h>
...@@ -571,6 +572,10 @@ int mvebu_pmsu_dfs_request(int cpu) ...@@ -571,6 +572,10 @@ int mvebu_pmsu_dfs_request(int cpu)
return 0; return 0;
} }
struct cpufreq_dt_platform_data cpufreq_dt_pd = {
.independent_clocks = true,
};
static int __init armada_xp_pmsu_cpufreq_init(void) static int __init armada_xp_pmsu_cpufreq_init(void)
{ {
struct device_node *np; struct device_node *np;
...@@ -643,7 +648,8 @@ static int __init armada_xp_pmsu_cpufreq_init(void) ...@@ -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; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment