OSDN Git Service

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>
Mon, 18 May 2020 16:56:35 +0000 (18:56 +0200)
commitd15483bb49bae0f9cbb67c54becec252545752d3
tree803eb0aaf6826776f61866235c7947c92bb66b0d
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
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