lib: sbi: Simplify timer platform operations
authorAnup Patel <anup.patel@wdc.com>
Wed, 21 Apr 2021 16:34:17 +0000 (22:04 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 28 Apr 2021 11:30:49 +0000 (17:00 +0530)
commit559a8f1d3be3210d4903c0db54c2d36e2f8d6ad4
tree5a646e54241cfef96ccca4a5a8cc29ee68d77acf
parent068ca086af2312d56efe51a724d78d84e1339ab4
lib: sbi: Simplify timer platform operations

Instead of having timer_value(), timer_event_start(), and
timer_event_stop() callbacks in platform operations, it will
be much simpler for timer driver to directly register these
operations as device to the sbi_timer implementation.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
19 files changed:
include/sbi/sbi_platform.h
include/sbi/sbi_timer.h
include/sbi_utils/sys/clint.h
include/sbi_utils/timer/fdt_timer.h
lib/sbi/sbi_platform.c
lib/sbi/sbi_timer.c
lib/utils/sys/clint.c
lib/utils/timer/fdt_timer.c
lib/utils/timer/fdt_timer_clint.c
platform/andes/ae350/platform.c
platform/andes/ae350/plmt.c
platform/andes/ae350/plmt.h
platform/fpga/ariane/platform.c
platform/fpga/openpiton/platform.c
platform/generic/platform.c
platform/kendryte/k210/platform.c
platform/nuclei/ux600/platform.c
platform/sifive/fu540/platform.c
platform/template/platform.c