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

Commit 138f7ca7 authored by Tero Kristo's avatar Tero Kristo Committed by Tony Lindgren
Browse files

ARM: OMAP2+: timer: add support for fetching fck handle from DT



The mux clock handle shall be provided via "fck" DT handle. This avoids
the need to lookup the main clock via hwmod core, which will not work
with the clkctrl clock support anymore; the main clock is not going to
be a mux.

Signed-off-by: default avatarTero Kristo <t-kristo@ti.com>
Acked-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 2ea659a9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -255,6 +255,8 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer,

		timer->io_base = of_iomap(np, 0);

		timer->fclk = of_clk_get_by_name(np, "fck");

		of_node_put(np);
	} else {
		if (omap_dm_timer_reserve_systimer(timer->id))
@@ -292,6 +294,7 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer,
	omap_hwmod_setup_one(oh_name);

	/* After the dmtimer is using hwmod these clocks won't be needed */
	if (IS_ERR_OR_NULL(timer->fclk))
		timer->fclk = clk_get(NULL, omap_hwmod_get_main_clk(oh));
	if (IS_ERR(timer->fclk))
		return PTR_ERR(timer->fclk);