diff options
-rw-r--r-- | arch/arm/mach-omap2/io.c | 13 |
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) | |||
488 | void __init omap3430_init_early(void) | 488 | void __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 | ||
493 | void __init omap35xx_init_early(void) | 495 | void __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 | ||
498 | void __init omap3630_init_early(void) | 502 | void __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 | ||
503 | void __init am35xx_init_early(void) | 509 | void __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 | ||
508 | void __init ti81xx_init_early(void) | 516 | void __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 | ||
526 | void __init omap3_init_late(void) | 537 | void __init omap3_init_late(void) |