diff options
| author | Nishanth Menon <nm@ti.com> | 2013-10-16 10:39:03 -0500 |
|---|---|---|
| committer | James Wylder <jwylder@motorola.com> | 2014-03-19 15:32:36 -0500 |
| commit | f7a0a8cf52899a412a713476e9faad1490390982 (patch) | |
| tree | 9897c16dae374d8ae185695ea3acd4ea30edfb0d | |
| parent | a6a71879d5885ec9f37b691ac792e266c2e62edb (diff) | |
| download | olio-linux-3.10-f7a0a8cf52899a412a713476e9faad1490390982.tar.xz olio-linux-3.10-f7a0a8cf52899a412a713476e9faad1490390982.zip | |
ARM: OMAP3+: use cpu0-cpufreq driver in device tree supported boot
With OMAP3+ and AM33xx supported SoC having defined CPU device tree
entries with operating-points and clock nodes defined, we can now use
the SoC generic cpufreq-cpu0 driver by registering appropriate device.
Change-Id: If68a1ff0d7d1e449d31b64b113265f112e69d179
Cc: Benoit Cousson <bcousson@baylibre.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: James Wylder <jwylder@motorola.com>
| -rw-r--r-- | arch/arm/mach-omap2/pm.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index b355841f2b2..9f213c3ad7f 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c @@ -269,7 +269,12 @@ static void __init omap4_init_voltages(void) static inline void omap_init_cpufreq(void) { - struct platform_device_info devinfo = { .name = "omap-cpufreq", }; + struct platform_device_info devinfo = { }; + + if (!of_have_populated_dt()) + devinfo.name = "omap-cpufreq"; + else + devinfo.name = "cpufreq-cpu0"; platform_device_register_full(&devinfo); } @@ -303,10 +308,11 @@ int __init omap2_common_pm_late_init(void) /* Smartreflex device init */ omap_devinit_smartreflex(); - /* cpufreq dummy device instantiation */ - omap_init_cpufreq(); } + /* cpufreq dummy device instantiation */ + omap_init_cpufreq(); + #ifdef CONFIG_SUSPEND suspend_set_ops(&omap_pm_ops); #endif |