lib: utils/fdt: Extend fdt_parse_aclint_node() function
authorAnup Patel <anup.patel@wdc.com>
Fri, 23 Jul 2021 10:07:51 +0000 (15:37 +0530)
committerAnup Patel <anup@brainfault.org>
Sat, 14 Aug 2021 03:32:39 +0000 (09:02 +0530)
commitf3a0eb8583828b0223f9e924672fc455359ea6c8
tree611d50c4ece9e7c14a5eede13107bed6be24fa03
parent7a3a0cce4d5b145b5659d4204c1ed8c8efae31cc
lib: utils/fdt: Extend fdt_parse_aclint_node() function

The fdt_parse_aclint_node() is used to parse DT node for SiFive
CLINT, ACLINT MTIMER, and ACLINT MSWI devices.

The ACLINT MTIMER has undergone following changes:
1) MTIMER DT node now requires separate addresses in for MTIME
   register and MTIMECMPx registers in the reg DT property.
2) MTIMER DT node might have no interrupts-extended DT property
   when the MTIMER device has no associated HARTs (i.e. the
   MTIMER device has no MTIMECMPx registers)

This patch extends fdt_parse_aclint_node() to handle above
mentioned changes in ACLINT MTIMER DT bindings.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
include/sbi_utils/fdt/fdt_helper.h
lib/utils/fdt/fdt_helper.c
lib/utils/ipi/fdt_ipi_mswi.c
lib/utils/timer/fdt_timer_mtimer.c