mbox series

[0/5] ACLINT MTIMER improvements

Message ID 20210724122503.2486624-1-anup.patel@wdc.com
Headers show
Series ACLINT MTIMER improvements | expand

Message

Anup Patel July 24, 2021, 12:24 p.m. UTC
To support more flexibility in ACLINT MTIMER implementation, the ACLINT
specification now allows separate base address of MTIME and MTIMECMP
registers so that multiple MTIMER devices can share the same physical
MTIME register.

This series extends ACLINT support in OpenSBI to incorporate above changes
in ACLINT MTIMER definition. It can be found in the riscv_aclint_imp_v1
branch at:
https://github.com/avpatel/opensbi.git

Anup Patel (5):
  lib: utils/timer: Allow separate base addresses for MTIME and MTIMECMP
  lib: utils: Extend fdt_get_node_addr_size() for multiple register sets
  lib: utils/fdt: Extend fdt_parse_aclint_node() function
  lib: utils/timer: Allow ACLINT MTIMER supporting only 32-bit MMIO
  lib: utils/timer: Simplify MTIMER synchronization

 include/sbi_utils/fdt/fdt_helper.h      |   6 +-
 include/sbi_utils/timer/aclint_mtimer.h |  26 ++++-
 lib/utils/fdt/fdt_helper.c              |  81 +++++++++-----
 lib/utils/gpio/fdt_gpio_sifive.c        |   2 +-
 lib/utils/ipi/fdt_ipi_mswi.c            |   3 +-
 lib/utils/reset/fdt_reset_sifive_test.c |   2 +-
 lib/utils/timer/aclint_mtimer.c         | 140 ++++++++++++++++--------
 lib/utils/timer/fdt_timer_mtimer.c      |  67 ++++++++++--
 platform/fpga/ariane/platform.c         |   8 +-
 platform/fpga/openpiton/platform.c      |  13 ++-
 platform/kendryte/k210/platform.c       |   8 +-
 platform/nuclei/ux600/platform.c        |   8 +-
 platform/template/platform.c            |   8 +-
 13 files changed, 266 insertions(+), 106 deletions(-)