diff options
author | Paul Walmsley <paul@pwsan.com> | 2010-01-26 22:13:12 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-01-29 12:14:22 -0500 |
commit | e80a9729b15f4c2c00ed51d61aa543fb4269d5ca (patch) | |
tree | 74db413fdf841d7016c17dedcf74756e5927718e /arch/arm/mach-omap2/io.c | |
parent | d3730192294c1c98b17a67aadbbdc4c28ad05c6e (diff) |
OMAP2/3/4 clock: rename and clean the omap2_clk_init() functions
Rename the omap2_clk_init() in the OMAP2, 3, and 4 clock code to be
omap2xxx_clk_init(), omap3xxx_clk_init(), etc. Remove all traces of
the (commented) old virt_prcm_set code from omap3xxx_clk_init() and
omap4xxx_clk_init(), since this will be handled with the OPP code that
is cooking in the PM branch.
After this patch, there should be very little else in the clock code
that blocks a multi-OMAP 2+3 kernel. (OMAP2420+OMAP2430 still has some
outstanding issues that need to be resolved; this is pending on some
additions to the hwmod data.)
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 | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 8c58699083f6..01ef2ae93593 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -35,7 +35,9 @@ | |||
35 | #include <plat/serial.h> | 35 | #include <plat/serial.h> |
36 | #include <plat/vram.h> | 36 | #include <plat/vram.h> |
37 | 37 | ||
38 | #include "clock.h" | 38 | #include "clock2xxx.h" |
39 | #include "clock34xx.h" | ||
40 | #include "clock44xx.h" | ||
39 | 41 | ||
40 | #include <plat/omap-pm.h> | 42 | #include <plat/omap-pm.h> |
41 | #include <plat/powerdomain.h> | 43 | #include <plat/powerdomain.h> |
@@ -320,7 +322,16 @@ void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0, | |||
320 | omap2_mux_init(); | 322 | omap2_mux_init(); |
321 | omap_pm_if_early_init(mpu_opps, dsp_opps, l3_opps); | 323 | omap_pm_if_early_init(mpu_opps, dsp_opps, l3_opps); |
322 | #endif | 324 | #endif |
323 | omap2_clk_init(); | 325 | |
326 | if (cpu_is_omap24xx()) | ||
327 | omap2xxx_clk_init(); | ||
328 | else if (cpu_is_omap34xx()) | ||
329 | omap3xxx_clk_init(); | ||
330 | else if (cpu_is_omap44xx()) | ||
331 | omap4xxx_clk_init(); | ||
332 | else | ||
333 | pr_err("Could not init clock framework - unknown CPU\n"); | ||
334 | |||
324 | omap_serial_early_init(); | 335 | omap_serial_early_init(); |
325 | #ifndef CONFIG_ARCH_OMAP4 | 336 | #ifndef CONFIG_ARCH_OMAP4 |
326 | omap_hwmod_late_init(); | 337 | omap_hwmod_late_init(); |