clocksource/drivers/timer-tegra186: Add support for Tegra234 SoC
authorKartik <kkartik@nvidia.com>
Mon, 4 Jul 2022 08:13:39 +0000 (13:43 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 15 Jul 2022 22:38:50 +0000 (00:38 +0200)
The timer IP block present on Tegra234 SoC supports watchdog timer
functionality that can be used to recover from system hangs. The
watchdog timer uses a timer in the background for countdown.

Signed-off-by: Kartik <kkartik@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/1656922422-25823-4-git-send-email-kkartik@nvidia.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-tegra186.c

index 4515517..ea74288 100644 (file)
@@ -486,8 +486,14 @@ static const struct tegra186_timer_soc tegra186_timer = {
        .num_wdts = 3,
 };
 
+static const struct tegra186_timer_soc tegra234_timer = {
+       .num_timers = 16,
+       .num_wdts = 3,
+};
+
 static const struct of_device_id tegra186_timer_of_match[] = {
        { .compatible = "nvidia,tegra186-timer", .data = &tegra186_timer },
+       { .compatible = "nvidia,tegra234-timer", .data = &tegra234_timer },
        { }
 };
 MODULE_DEVICE_TABLE(of, tegra186_timer_of_match);