ARM: OMAP2+: Allow using ti-sysc for system timers
authorTony Lindgren <tony@atomide.com>
Mon, 16 Apr 2018 17:21:39 +0000 (10:21 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 30 Apr 2018 19:04:51 +0000 (12:04 -0700)
commitb456d4f592ba01a60c78539ca519893f86e4a600
tree7e86d6fff21fe67c8af3b53d48aa73643ce5ea6b
parent44773ba170a6f969620221a6d87d03feae5e464f
ARM: OMAP2+: Allow using ti-sysc for system timers

If a system timer is configured with an interrconnect target module in
the dts, the ti,hwmods and module fck are at the interconnect target
level. Then there's a separate fck for the timer child device.

If the child device has a separate functional clock, we need to configure
it directly. For example, timer clk clkctrl clock bit 0 is the module
clock for the interconnect target, and bit 24 being the functional clock
for the timer IP.

For system timers, we already mark them as disabled. Now must also mark
the interconnect target module as disabled to prevent ti-sysc to manage
it instead of the system timer.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/timer.c