From mboxrd@z Thu Jan 1 00:00:00 1970 From: guoren@kernel.org Date: Tue, 13 Apr 2021 03:44:01 +0000 Subject: [PATCH 1/2] lib: utils: Implement "64bit-mmio" property parsing Message-ID: <1618285442-84580-1-git-send-email-guoren@kernel.org> List-Id: To: opensbi@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: Guo Ren Figure out CLINT has_64bit_mmio from DT node and using antonym for compatibility. Signed-off-by: Guo Ren Cc: Anup Patel Cc: Xiang W --- lib/utils/fdt/fdt_helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.7.4