aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/io.c
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2010-12-21 22:01:20 -0500
committerPaul Walmsley <paul@pwsan.com>2010-12-21 22:01:20 -0500
commit6e01478ae8a4322c9a2b2d6efed50196265ed5f2 (patch)
tree599403c4442e99f8a63a0635e1712e4a564b50a2 /arch/arm/mach-omap2/io.c
parent4b4f62c4672805466652a785070cc2ac8a398e16 (diff)
OMAP2+: powerdomains: move powerdomain static data to .c files
Static data should be declared in .c files, not .h files. It should be possible to #include .h files at any point without creating multiple copies of the same data. We converted the clock data to .c files some time ago. This patch does the same for the powerdomain data. Signed-off-by: Paul Walmsley <paul@pwsan.com> Cc: Rajendra Nayak <rnayak@ti.com> Cc: Santosh Shilimkar <santosh.shilimkar@ti.com> Reviewed-by: Kevin Hilman <khilman@deeprootsystems.com> Tested-by: Kevin Hilman <khilman@deeprootsystems.com> Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Tested-by: Rajendra Nayak <rnayak@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/io.c')
-rw-r--r--arch/arm/mach-omap2/io.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index 80a8e0e4d03..40a548b203e 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -339,18 +339,25 @@ void __init omap2_init_common_infrastructure(void)
339{ 339{
340 u8 postsetup_state; 340 u8 postsetup_state;
341 341
342 pwrdm_fw_init(); 342 if (cpu_is_omap242x()) {
343 clkdm_init(clockdomains_omap, clkdm_autodeps); 343 omap2xxx_powerdomains_init();
344 if (cpu_is_omap242x()) 344 clkdm_init(clockdomains_omap, clkdm_autodeps);
345 omap2420_hwmod_init(); 345 omap2420_hwmod_init();
346 else if (cpu_is_omap243x()) 346 } else if (cpu_is_omap243x()) {
347 omap2xxx_powerdomains_init();
348 clkdm_init(clockdomains_omap, clkdm_autodeps);
347 omap2430_hwmod_init(); 349 omap2430_hwmod_init();
348 else if (cpu_is_omap34xx()) 350 } else if (cpu_is_omap34xx()) {
351 omap3xxx_powerdomains_init();
352 clkdm_init(clockdomains_omap, clkdm_autodeps);
349 omap3xxx_hwmod_init(); 353 omap3xxx_hwmod_init();
350 else if (cpu_is_omap44xx()) 354 } else if (cpu_is_omap44xx()) {
355 omap44xx_powerdomains_init();
356 clkdm_init(clockdomains_omap, clkdm_autodeps);
351 omap44xx_hwmod_init(); 357 omap44xx_hwmod_init();
352 else 358 } else {
353 pr_err("Could not init hwmod data - unknown SoC\n"); 359 pr_err("Could not init hwmod data - unknown SoC\n");
360 }
354 361
355 /* Set the default postsetup state for all hwmods */ 362 /* Set the default postsetup state for all hwmods */
356#ifdef CONFIG_PM_RUNTIME 363#ifdef CONFIG_PM_RUNTIME