aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-12-02 11:48:02 -0500
committerArnd Bergmann <arnd@arndb.de>2014-12-04 11:31:32 -0500
commit842f7d2c4d392c0571cf72e3eaca26742bebbd1e (patch)
tree78fcec25bf49758c17bb2a7f60aee8db0124ac2d
parentc747803861f7e3849673754062e827d8d21dbcc4 (diff)
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: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Jason Cooper <jason@lakedaemon.net> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r--arch/arm/mach-mvebu/pmsu.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c
index 5a757f929927..d8ab605a44fa 100644
--- a/arch/arm/mach-mvebu/pmsu.c
+++ b/arch/arm/mach-mvebu/pmsu.c
@@ -20,6 +20,7 @@
20 20
21#include <linux/clk.h> 21#include <linux/clk.h>
22#include <linux/cpu_pm.h> 22#include <linux/cpu_pm.h>
23#include <linux/cpufreq-dt.h>
23#include <linux/delay.h> 24#include <linux/delay.h>
24#include <linux/init.h> 25#include <linux/init.h>
25#include <linux/io.h> 26#include <linux/io.h>
@@ -571,6 +572,10 @@ int mvebu_pmsu_dfs_request(int cpu)
571 return 0; 572 return 0;
572} 573}
573 574
575struct cpufreq_dt_platform_data cpufreq_dt_pd = {
576 .independent_clocks = true,
577};
578
574static int __init armada_xp_pmsu_cpufreq_init(void) 579static int __init armada_xp_pmsu_cpufreq_init(void)
575{ 580{
576 struct device_node *np; 581 struct device_node *np;
@@ -643,7 +648,8 @@ static int __init armada_xp_pmsu_cpufreq_init(void)
643 } 648 }
644 } 649 }
645 650
646 platform_device_register_simple("cpufreq-dt", -1, NULL, 0); 651 platform_device_register_data(NULL, "cpufreq-dt", -1,
652 &cpufreq_dt_pd, sizeof(cpufreq_dt_pd));
647 return 0; 653 return 0;
648} 654}
649 655