projects
/
platform
/
kernel
/
opensbi-spacemit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f41196a
)
lib: utils: Implement "64bit-mmio" property parsing
author
Guo Ren
<guoren@linux.alibaba.com>
Sat, 17 Apr 2021 16:26:16 +0000
(16:26 +0000)
committer
Anup Patel
<anup@brainfault.org>
Thu, 22 Apr 2021 09:30:58 +0000
(15:00 +0530)
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>
lib/utils/fdt/fdt_helper.c
patch
|
blob
|
history
diff --git
a/lib/utils/fdt/fdt_helper.c
b/lib/utils/fdt/fdt_helper.c
index
bf19ff9
..
909de01
100644
(file)
--- 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;
}