Skip to content

Commit 3b7d96a

Browse files
Keerthyjdlezcano
authored andcommitted
clocksource/drivers/ti-32k: Add CLOCK_SOURCE_SUSPEND_NONSTOP flag for non-am43 SoCs
The 32k clocksource is NONSTOP for non-am43 SoCs. Hence add the flag for all the other SoCs. Reported-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Keerthy <j-keerthy@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent e2c631b commit 3b7d96a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/clocksource/timer-ti-32k.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ static int __init ti_32k_timer_init(struct device_node *np)
9797
return -ENXIO;
9898
}
9999

100+
if (!of_machine_is_compatible("ti,am43"))
101+
ti_32k_timer.cs.flags |= CLOCK_SOURCE_SUSPEND_NONSTOP;
102+
100103
ti_32k_timer.counter = ti_32k_timer.base;
101104

102105
/*

0 commit comments

Comments
 (0)