clocksource/drivers/timer-ti-32k: Add support for initializing directly
authorTony Lindgren <tony@atomide.com>
Thu, 7 May 2020 17:23:17 +0000 (10:23 -0700)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 22 May 2020 22:01:04 +0000 (00:01 +0200)
commit46b30515f97ece3da661b251e4a0ad9ac7a338d3
treee2d97b34479b39d981c215473083c2a5c6367e0a
parentd1b5e55208fd8e1c73876ab6ad1ce93485e3f5a2
clocksource/drivers/timer-ti-32k: Add support for initializing directly

Let's allow probing the 32k counter directly based on devicetree data to
prepare for dropping the related legacy platform code. Let's only do this
if the parent node is compatible with ti-sysc to make sure we have the
related devicetree data available.

Let's also show the 32k counter information before registering the
clocksource, now we see it after the clocksource information which is a
bit confusing.

Cc: linux-kernel@vger.kernel.org
Cc: linux-omap@vger.kernel.org
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Keerthy <j-keerthy@ti.com>
Cc: Lokesh Vutla <lokeshvutla@ti.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Tero Kristo <t-kristo@ti.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200507172330.18679-2-tony@atomide.com
drivers/clocksource/timer-ti-32k.c