aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2013-08-02 07:32:30 -0400
committerMike Turquette <mturquette@linaro.org>2014-01-17 15:37:31 -0500
commit3e049157911ad0126b6e21460251f84fb38aad63 (patch)
tree943ba0669c9f49cd0a2513b6bf7682db64b1dae6 /arch
parent149c09d3a61dcb90b9cc55beafc70f06e80389f1 (diff)
ARM: OMAP3: use DT clock init if DT data is available
OMAP3 platforms support both DT and non-DT boot at the moment, make the clock init work according to the used setup. Signed-off-by: Tero Kristo <t-kristo@ti.com> Tested-by: Nishanth Menon <nm@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap2/io.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index f28399f7ed4f..b8097fe498ec 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -488,21 +488,29 @@ void __init omap3_init_early(void)
488void __init omap3430_init_early(void) 488void __init omap3430_init_early(void)
489{ 489{
490 omap3_init_early(); 490 omap3_init_early();
491 if (of_have_populated_dt())
492 omap_clk_soc_init = omap3430_dt_clk_init;
491} 493}
492 494
493void __init omap35xx_init_early(void) 495void __init omap35xx_init_early(void)
494{ 496{
495 omap3_init_early(); 497 omap3_init_early();
498 if (of_have_populated_dt())
499 omap_clk_soc_init = omap3430_dt_clk_init;
496} 500}
497 501
498void __init omap3630_init_early(void) 502void __init omap3630_init_early(void)
499{ 503{
500 omap3_init_early(); 504 omap3_init_early();
505 if (of_have_populated_dt())
506 omap_clk_soc_init = omap3630_dt_clk_init;
501} 507}
502 508
503void __init am35xx_init_early(void) 509void __init am35xx_init_early(void)
504{ 510{
505 omap3_init_early(); 511 omap3_init_early();
512 if (of_have_populated_dt())
513 omap_clk_soc_init = am35xx_dt_clk_init;
506} 514}
507 515
508void __init ti81xx_init_early(void) 516void __init ti81xx_init_early(void)
@@ -520,7 +528,10 @@ void __init ti81xx_init_early(void)
520 omap3xxx_clockdomains_init(); 528 omap3xxx_clockdomains_init();
521 omap3xxx_hwmod_init(); 529 omap3xxx_hwmod_init();
522 omap_hwmod_init_postsetup(); 530 omap_hwmod_init_postsetup();
523 omap_clk_soc_init = omap3xxx_clk_init; 531 if (of_have_populated_dt())
532 omap_clk_soc_init = ti81xx_dt_clk_init;
533 else
534 omap_clk_soc_init = omap3xxx_clk_init;
524} 535}
525 536
526void __init omap3_init_late(void) 537void __init omap3_init_late(void)