ARM: OMAP2+: Fix overwriting of clkctrl and modulemode values
authorTony Lindgren <tony@atomide.com>
Tue, 29 Aug 2017 17:03:33 +0000 (10:03 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 19 Sep 2017 18:04:44 +0000 (11:04 -0700)
commit8823ddf25d34e32c8691b9244e9b8aa120f1cff6
tree1c0683220979555d457e0efa37ed8764c560fca5
parent6963c58461b31c10cff221a7bbe4c61d803656c6
ARM: OMAP2+: Fix overwriting of clkctrl and modulemode values

We are currently overwiting the hwmod clkctrl registers if we
configure a clock ctrl clock from device tree.

While this does not expose any bugs except for kernel coders
when debugging things, it should be fixed for correctness.
It is now impossible to use the hwmod data for checking the
clkctrl register values after booting for debugging or
generating dts data from hwmod data.

Let's fix the issue by adding a helper to detect if clkctrl
clock is configured.

Cc: Lokesh Vutla <lokeshvutla@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/mach-omap2/omap_hwmod.h