Re: [PATCH 4/6] clocksource: realtek: Add timer driver for rtl-otto platforms

From
Krzysztof Kozlowski <krzk@kernel.org>
Date
2024-06-23 07:13:22
Also in
linux-mips, lkml
Reply to
Chris Packham, 2024-06-21
On 21/06/2024 06:27, Chris Packham wrote:
The timer/counter block on the Realtek SoCs provides up to 5 timers. It
also includes a watchdog timer but this isn't being used currently (it
will be added as a separate wdt driver).

One timer will be used per CPU as a local clock event generator. An
additional timer will be used as an overal stable clocksource.

Signed-off-by: Markus Stockhausen <redacted>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
...
quoted hunk ↗ jump to hunk
+	pr_err("timer registration failed\n");
+	for_each_possible_cpu(cpu_rollback) {
+		if (cpu_rollback == cpu)
+			break;
+		to = per_cpu_ptr(&rttm_to, cpu_rollback);
+		timer_of_cleanup(to);
+	}
+
+	return -EINVAL;
+}
+
+TIMER_OF_DECLARE(otto_timer, "realtek,otto-timer", rttm_probe);
Undocumented compatible.

Best regards,
Krzysztof
Thread (20 messages) 20 messages, 4 authors, last reply 2024-06-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help