Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69a1e7a1 authored by Tero Kristo's avatar Tero Kristo
Browse files

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: default avatarTero Kristo <t-kristo@ti.com>
parent ee200119
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -182,3 +182,6 @@
&i2c2 {
	compatible = "ti,omap2420-i2c";
};

/include/ "omap24xx-clocks.dtsi"
/include/ "omap2420-clocks.dtsi"
+3 −0
Original line number Diff line number Diff line
@@ -288,3 +288,6 @@
&i2c2 {
	compatible = "ti,omap2430-i2c";
};

/include/ "omap24xx-clocks.dtsi"
/include/ "omap2430-clocks.dtsi"
+13 −2
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@
#include "prm2xxx.h"
#include "prm3xxx.h"
#include "prm44xx.h"
#include "opp2xxx.h"

/*
 * omap_clk_soc_init: points to a function that does the SoC-specific
@@ -410,8 +411,13 @@ void __init omap2420_init_early(void)
	omap242x_clockdomains_init();
	omap2420_hwmod_init();
	omap_hwmod_init_postsetup();
	if (of_have_populated_dt()) {
		omap_clk_soc_init = omap2420_dt_clk_init;
		rate_table = omap2420_rate_table;
	} else {
		omap_clk_soc_init = omap2420_clk_init;
	}
}

void __init omap2420_init_late(void)
{
@@ -439,8 +445,13 @@ void __init omap2430_init_early(void)
	omap243x_clockdomains_init();
	omap2430_hwmod_init();
	omap_hwmod_init_postsetup();
	if (of_have_populated_dt()) {
		omap_clk_soc_init = omap2430_dt_clk_init;
		rate_table = omap2430_rate_table;
	} else {
		omap_clk_soc_init = omap2430_clk_init;
	}
}

void __init omap2430_init_late(void)
{