From: guoren@kernel.org <guoren@kernel.org>
To: opensbi@lists.infradead.org
Subject: [PATCH 1/2] lib: utils: Implement "64bit-mmio" property parsing
Date: Tue, 13 Apr 2021 03:44:01 +0000 [thread overview]
Message-ID: <1618285442-84580-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>
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
next reply other threads:[~2021-04-13 3:44 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-13 3:44 guoren [this message]
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
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=1618285442-84580-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.