]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: allow riscv timer to be instantiated via device tree
authorTorsten Duwe <duwe@lst.de>
Mon, 14 Aug 2023 16:05:28 +0000 (18:05 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 5 Sep 2023 02:53:36 +0000 (10:53 +0800)
commitf39f8f77a5268530e982aa38e921c640d532a9ae
tree642d81d389f8fc5ba2b43d9054e45aa89d73fc0e
parent71914337ef579bb22705d4b88fee6b1448f7a9b1
riscv: allow riscv timer to be instantiated via device tree

For the architectural timer on riscv, there already is a defined
device tree binding[1]. Allow timer instances to be created from
device tree matches, but for now retain the old mechanism, which
registers the timer biggy-back with the CPU.

[1] linux/Documentation/devicetree/bindings/timer/riscv,timer.yaml

Signed-off-by: Torsten Duwe <duwe@suse.de>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
drivers/timer/riscv_timer.c