From: guoren@kernel.org <guoren@kernel.org>
To: opensbi@lists.infradead.org
Subject: [PATCH v2 1/2] lib: utils: Implement "64bit-mmio" property parsing
Date: Sat, 17 Apr 2021 16:26:16 +0000 [thread overview]
Message-ID: <1618676777-89271-1-git-send-email-guoren@kernel.org> (raw)
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>
Reviewed-by: Anup Patel <anup.patel@wdc.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
next reply other threads:[~2021-04-17 16:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-17 16:26 guoren [this message]
2021-04-17 16:26 ` [PATCH v2 2/2] lib: utils: reset: Add T-HEAD sample platform reset driver guoren
2021-04-21 4:30 ` Anup Patel
2021-04-21 7:42 ` Guo Ren
2021-04-22 10:04 ` Anup Patel
2021-04-22 10:03 ` [PATCH v2 1/2] lib: utils: Implement "64bit-mmio" property parsing Anup Patel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1618676777-89271-1-git-send-email-guoren@kernel.org \
--to=guoren@kernel.org \
--cc=opensbi@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox