summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2021-04-17 19:26:16 +0300
committerAnup Patel <anup@brainfault.org>2021-04-22 12:30:58 +0300
commitc5d064505236d8c272fffcd58fb27482325e14fd (patch)
treefe4fc7f94debd35cc75dadd30db4f77a576d1ad6
parentf41196a9d245f024a87a08e7d159ca6dc0a6c298 (diff)
downloadopensbi-c5d064505236d8c272fffcd58fb27482325e14fd.tar.xz
lib: utils: Implement "64bit-mmio" property parsing
Figure out CLINT has_64bit_mmio from DT node and using antonym for compatibility. Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
-rw-r--r--lib/utils/fdt/fdt_helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/utils/fdt/fdt_helper.c b/lib/utils/fdt/fdt_helper.c
index bf19ff9..909de01 100644
--- a/lib/utils/fdt/fdt_helper.c
+++ b/lib/utils/fdt/fdt_helper.c
@@ -442,8 +442,9 @@ int fdt_parse_clint_node(void *fdt, int nodeoffset, bool for_timer,
if (clint->hart_count < count)
clint->hart_count = count;
- /* TODO: We should figure-out CLINT has_64bit_mmio from DT node */
clint->has_64bit_mmio = TRUE;
+ if (fdt_getprop(fdt, nodeoffset, "clint,has-no-64bit-mmio", &count))
+ clint->has_64bit_mmio = FALSE;
return 0;
}