aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2014-02-24 11:51:05 -0500
committerTero Kristo <t-kristo@ti.com>2014-07-02 08:47:32 -0400
commit69a1e7a1feb5bac44a5a76380768596a12a33050 (patch)
treeb58585df4bdf1b70ebbee405834edb0a601fabb4 /arch
parentee200119c03c7d43ebaf7ae70985244aedb0586d (diff)
ARM: OMAP2: clock: use DT clock boot if available
Otherwise legacy boot clock data is used. This patch also includes the clock data files to the base dtsi files. Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boot/dts/omap2420.dtsi3
-rw-r--r--arch/arm/boot/dts/omap2430.dtsi3
-rw-r--r--arch/arm/mach-omap2/io.c15
3 files changed, 19 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/omap2420.dtsi b/arch/arm/boot/dts/omap2420.dtsi
index e83b0468080c..2ad3e3b29411 100644
--- a/arch/arm/boot/dts/omap2420.dtsi
+++ b/arch/arm/boot/dts/omap2420.dtsi
@@ -182,3 +182,6 @@
182&i2c2 { 182&i2c2 {
183 compatible = "ti,omap2420-i2c"; 183 compatible = "ti,omap2420-i2c";
184}; 184};
185
186/include/ "omap24xx-clocks.dtsi"
187/include/ "omap2420-clocks.dtsi"
diff --git a/arch/arm/boot/dts/omap2430.dtsi b/arch/arm/boot/dts/omap2430.dtsi
index c4e8013801ee..f9ab99d5c951 100644
--- a/arch/arm/boot/dts/omap2430.dtsi
+++ b/arch/arm/boot/dts/omap2430.dtsi
@@ -288,3 +288,6 @@
288&i2c2 { 288&i2c2 {
289 compatible = "ti,omap2430-i2c"; 289 compatible = "ti,omap2430-i2c";
290}; 290};
291
292/include/ "omap24xx-clocks.dtsi"
293/include/ "omap2430-clocks.dtsi"
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index 8f559450c876..80bf63359c24 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -53,6 +53,7 @@
53#include "prm2xxx.h" 53#include "prm2xxx.h"
54#include "prm3xxx.h" 54#include "prm3xxx.h"
55#include "prm44xx.h" 55#include "prm44xx.h"
56#include "opp2xxx.h"
56 57
57/* 58/*
58 * omap_clk_soc_init: points to a function that does the SoC-specific 59 * omap_clk_soc_init: points to a function that does the SoC-specific
@@ -410,7 +411,12 @@ void __init omap2420_init_early(void)
410 omap242x_clockdomains_init(); 411 omap242x_clockdomains_init();
411 omap2420_hwmod_init(); 412 omap2420_hwmod_init();
412 omap_hwmod_init_postsetup(); 413 omap_hwmod_init_postsetup();
413 omap_clk_soc_init = omap2420_clk_init; 414 if (of_have_populated_dt()) {
415 omap_clk_soc_init = omap2420_dt_clk_init;
416 rate_table = omap2420_rate_table;
417 } else {
418 omap_clk_soc_init = omap2420_clk_init;
419 }
414} 420}
415 421
416void __init omap2420_init_late(void) 422void __init omap2420_init_late(void)
@@ -439,7 +445,12 @@ void __init omap2430_init_early(void)
439 omap243x_clockdomains_init(); 445 omap243x_clockdomains_init();
440 omap2430_hwmod_init(); 446 omap2430_hwmod_init();
441 omap_hwmod_init_postsetup(); 447 omap_hwmod_init_postsetup();
442 omap_clk_soc_init = omap2430_clk_init; 448 if (of_have_populated_dt()) {
449 omap_clk_soc_init = omap2430_dt_clk_init;
450 rate_table = omap2430_rate_table;
451 } else {
452 omap_clk_soc_init = omap2430_clk_init;
453 }
443} 454}
444 455
445void __init omap2430_init_late(void) 456void __init omap2430_init_late(void)