]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1f86e996b9e405b6e356cfec08519adb340a9f3
treee2d97b34479b39d981c215473083c2a5c6367e0a
parent3fd22358adbce90381e7c10b1c1f230b327a8ee0
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