aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/io.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2010-02-24 23:53:03 -0500
committerTony Lindgren <tony@atomide.com>2010-02-24 23:53:03 -0500
commitb610ec502376d915b76a62e22576c5d0462cc9c9 (patch)
tree55206c47da1f010588964edafe09284fce704b63 /arch/arm/mach-omap2/io.c
parent0fdc54b2019700a4b50179914e810367c14044a3 (diff)
parentad001f145dcf457251e78fe2ae2ed40df1bda4ed (diff)
Merge branch 'for_2.6.34_b' of git://git.pwsan.com/linux-2.6 into omap-for-linus
Diffstat (limited to 'arch/arm/mach-omap2/io.c')
-rw-r--r--arch/arm/mach-omap2/io.c29
1 files changed, 12 insertions, 17 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index 0385a284125a..402e8f0d0f21 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -36,7 +36,7 @@
36#include <plat/vram.h> 36#include <plat/vram.h>
37 37
38#include "clock2xxx.h" 38#include "clock2xxx.h"
39#include "clock34xx.h" 39#include "clock3xxx.h"
40#include "clock44xx.h" 40#include "clock44xx.h"
41 41
42#include <plat/omap-pm.h> 42#include <plat/omap-pm.h>
@@ -46,9 +46,6 @@
46#include <plat/clockdomain.h> 46#include <plat/clockdomain.h>
47#include "clockdomains.h" 47#include "clockdomains.h"
48#include <plat/omap_hwmod.h> 48#include <plat/omap_hwmod.h>
49#include "omap_hwmod_2420.h"
50#include "omap_hwmod_2430.h"
51#include "omap_hwmod_34xx.h"
52 49
53/* 50/*
54 * The machine specific code may provide the extra mapping besides the 51 * The machine specific code may provide the extra mapping besides the
@@ -310,26 +307,24 @@ static int __init _omap2_init_reprogram_sdrc(void)
310void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0, 307void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0,
311 struct omap_sdrc_params *sdrc_cs1) 308 struct omap_sdrc_params *sdrc_cs1)
312{ 309{
313 struct omap_hwmod **hwmods = NULL;
314
315 if (cpu_is_omap2420())
316 hwmods = omap2420_hwmods;
317 else if (cpu_is_omap2430())
318 hwmods = omap2430_hwmods;
319 else if (cpu_is_omap34xx())
320 hwmods = omap34xx_hwmods;
321
322 pwrdm_init(powerdomains_omap); 310 pwrdm_init(powerdomains_omap);
323 clkdm_init(clockdomains_omap, clkdm_autodeps); 311 clkdm_init(clockdomains_omap, clkdm_autodeps);
324#ifndef CONFIG_ARCH_OMAP4 /* FIXME: Remove this once the clkdev is ready */ 312#ifndef CONFIG_ARCH_OMAP4 /* FIXME: Remove this once the clkdev is ready */
325 /* The OPP tables have to be registered before a clk init */ 313 if (cpu_is_omap242x())
326 omap_hwmod_init(hwmods); 314 omap2420_hwmod_init();
315 else if (cpu_is_omap243x())
316 omap2430_hwmod_init();
317 else if (cpu_is_omap34xx())
318 omap3xxx_hwmod_init();
327 omap2_mux_init(); 319 omap2_mux_init();
320 /* The OPP tables have to be registered before a clk init */
328 omap_pm_if_early_init(mpu_opps, dsp_opps, l3_opps); 321 omap_pm_if_early_init(mpu_opps, dsp_opps, l3_opps);
329#endif 322#endif
330 323
331 if (cpu_is_omap24xx()) 324 if (cpu_is_omap2420())
332 omap2xxx_clk_init(); 325 omap2420_clk_init();
326 else if (cpu_is_omap2430())
327 omap2430_clk_init();
333 else if (cpu_is_omap34xx()) 328 else if (cpu_is_omap34xx())
334 omap3xxx_clk_init(); 329 omap3xxx_clk_init();
335 else if (cpu_is_omap44xx()) 330 else if (cpu_is_omap44xx())