diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2010-07-26 18:34:31 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-07-26 18:34:31 -0400 |
commit | 6f88e9bc21746be9b15f1d8dcacf7595807e8828 (patch) | |
tree | d4b2845d41516ad4fa81acd2429278b75595d89d /arch/arm/mach-omap2/io.c | |
parent | 0656358159d7e26205bb9360840759c7c3c0725f (diff) |
OMAP: PM: create omap_devices for MPU, DSP, L3
Create simple omap_devices for the main processors and busses.
This is required to support the forth-coming device-based OPP
approach, where OPPs are managed and tracked at the device level.
Also, move these common PM init functions into a common_pm_init call
that is called as a device_initcall(). The PM init is done at this level
to ensure that the driver core is initialized before initialized.
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
[paul@pwsan.com: sparse warnings cleaned up; newly-created functions moved
from mach-omap2/io.c to mach-omap2/pm.c; newly-created functions renamed
to start with "omap2" rather than "omap"]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/io.c')
-rw-r--r-- | arch/arm/mach-omap2/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index e95b47b3bfd3..d1906c73aec1 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -45,6 +45,7 @@ | |||
45 | 45 | ||
46 | #include <plat/clockdomain.h> | 46 | #include <plat/clockdomain.h> |
47 | #include "clockdomains.h" | 47 | #include "clockdomains.h" |
48 | |||
48 | #include <plat/omap_hwmod.h> | 49 | #include <plat/omap_hwmod.h> |
49 | 50 | ||
50 | /* | 51 | /* |
@@ -349,7 +350,6 @@ void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0, | |||
349 | if (cpu_is_omap24xx() || cpu_is_omap34xx()) /* FIXME: OMAP4 */ | 350 | if (cpu_is_omap24xx() || cpu_is_omap34xx()) /* FIXME: OMAP4 */ |
350 | omap_hwmod_late_init(skip_setup_idle); | 351 | omap_hwmod_late_init(skip_setup_idle); |
351 | 352 | ||
352 | omap_pm_if_init(); | ||
353 | if (cpu_is_omap24xx() || cpu_is_omap34xx()) { | 353 | if (cpu_is_omap24xx() || cpu_is_omap34xx()) { |
354 | omap2_sdrc_init(sdrc_cs0, sdrc_cs1); | 354 | omap2_sdrc_init(sdrc_cs0, sdrc_cs1); |
355 | _omap2_init_reprogram_sdrc(); | 355 | _omap2_init_reprogram_sdrc(); |