lib: utils/timer: Use fdt_driver for initialization

The timer driver subsystem does not need any extra data, so it can use
`struct fdt_driver` directly. The generic fdt_timer_init() performs a
best-effort initialization of all matching DT nodes.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Samuel Holland
2024-11-11 14:02:55 -08:00
committed by Anup Patel
parent a524f0a507
commit a387a8dff0
5 changed files with 10 additions and 45 deletions

View File

@@ -1,3 +1,3 @@
HEADER: sbi_utils/timer/fdt_timer.h
TYPE: struct fdt_timer
TYPE: const struct fdt_driver
NAME: fdt_timer_drivers