[PATCH v3 0/5] Timer based delay loop
Anup Patel
anup.patel at wdc.com
Fri Sep 24 21:37:30 PDT 2021
This series adds timer based delay loop so that drivers and platform
support can have precise delays in their implementations.
These patches can be found in mtimer_freq_v3 branch at:
https://github.com/avpatel/opensbi.git
Changes since v2:
- Renamed few more defines in PATCH2
Changes since v1:
- Renamed few defines in PATCH2
- Added a warning in PATCH4
Anup Patel (5):
lib: utils/fdt: Add fdt_parse_timebase_frequency() function
lib: sbi: Add timer frequency to struct sbi_timer_device
lib: sbi: Print timer frequency at boot time
lib: sbi: Add generic timer delay loop function
lib: utils/reset: use sbi_timer_mdelay() in gpio reset driver
include/sbi/sbi_timer.h | 19 ++++++++++++++
include/sbi_utils/fdt/fdt_helper.h | 2 ++
include/sbi_utils/timer/aclint_mtimer.h | 1 +
lib/sbi/sbi_init.c | 5 ++--
lib/sbi/sbi_timer.c | 34 +++++++++++++++++++++++++
lib/utils/fdt/fdt_helper.c | 21 +++++++++++++++
lib/utils/reset/fdt_reset_gpio.c | 13 +++-------
lib/utils/timer/aclint_mtimer.c | 3 +++
lib/utils/timer/fdt_timer_mtimer.c | 4 +++
platform/fpga/ariane/platform.c | 2 ++
platform/fpga/openpiton/platform.c | 7 +++++
platform/kendryte/k210/platform.c | 1 +
platform/kendryte/k210/platform.h | 2 +-
platform/nuclei/ux600/platform.c | 1 +
platform/template/platform.c | 2 ++
15 files changed, 104 insertions(+), 13 deletions(-)
--
2.25.1
More information about the opensbi
mailing list