diff options
| author | Anup Patel <[email protected]> | 2021-07-23 15:37:51 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2021-08-14 09:02:39 +0530 |
| commit | f3a0eb8583828b0223f9e924672fc455359ea6c8 (patch) | |
| tree | 611d50c4ece9e7c14a5eede13107bed6be24fa03 /lib/utils/ipi | |
| parent | 7a3a0cce4d5b145b5659d4204c1ed8c8efae31cc (diff) | |
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 <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Diffstat (limited to 'lib/utils/ipi')
| -rw-r--r-- | lib/utils/ipi/fdt_ipi_mswi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/utils/ipi/fdt_ipi_mswi.c b/lib/utils/ipi/fdt_ipi_mswi.c index f119f9ce..1f0fda71 100644 --- a/lib/utils/ipi/fdt_ipi_mswi.c +++ b/lib/utils/ipi/fdt_ipi_mswi.c @@ -28,7 +28,8 @@ static int ipi_mswi_cold_init(void *fdt, int nodeoff, return SBI_ENOSPC; ms = &mswi[mswi_count]; - rc = fdt_parse_aclint_node(fdt, nodeoff, false, &ms->addr, &ms->size, + rc = fdt_parse_aclint_node(fdt, nodeoff, false, + &ms->addr, &ms->size, NULL, NULL, &ms->first_hartid, &ms->hart_count); if (rc) return rc; |
