OpenSBI Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] lib: utils: Implement "64bit-mmio" property parsing
@ 2021-04-13  3:44 guoren
  2021-04-13  3:44 ` [PATCH 2/2] lib: utils: reset: Add T-HEAD sample platform reset driver guoren
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: guoren @ 2021-04-13  3:44 UTC (permalink / raw)
  To: opensbi

From: Guo Ren <guoren@linux.alibaba.com>

Figure out CLINT has_64bit_mmio from DT node and using antonym for
compatibility.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Cc: Anup Patel <anup.patel@wdc.com>
Cc: Xiang W <wxjstz@126.com>
---
 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



^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2021-04-18  2:19 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-13  3:44 [PATCH 1/2] lib: utils: Implement "64bit-mmio" property parsing guoren
2021-04-13  3:44 ` [PATCH 2/2] lib: utils: reset: Add T-HEAD sample platform reset driver guoren
2021-04-17 10:30   ` Guo Ren
2021-04-17 11:35   ` Anup Patel
2021-04-17 14:12     ` Guo Ren
2021-04-17 11:50   ` Jessica Clarke
2021-04-17 14:08     ` Guo Ren
2021-04-17 10:30 ` [PATCH 1/2] lib: utils: Implement "64bit-mmio" property parsing Guo Ren
2021-04-17 11:25 ` Anup Patel
2021-04-17 11:41 ` Jessica Clarke
2021-04-17 11:45   ` Jessica Clarke
2021-04-17 13:16     ` Anup Patel
2021-04-17 13:17       ` Jessica Clarke
2021-04-17 13:26         ` Anup Patel
2021-04-17 13:27           ` Jessica Clarke
2021-04-17 13:32             ` Anup Patel
2021-04-17 13:34               ` Jessica Clarke
2021-04-17 13:39                 ` Anup Patel
2021-04-17 14:24     ` Guo Ren
2021-04-17 15:10       ` Jessica Clarke
2021-04-18  2:19         ` Guo Ren
2021-04-17 13:15   ` Anup Patel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox