From: Sebastian Reichel <sebastian.reichel@collabora.com>
To: u-boot@lists.denx.de
Subject: [PATCH 1/3] image: support board_fit_config_name_match
Date: Tue, 8 Dec 2020 19:10:11 +0100 [thread overview]
Message-ID: <20201208181013.87309-2-sebastian.reichel@collabora.com> (raw)
In-Reply-To: <20201208181013.87309-1-sebastian.reichel@collabora.com>
Support reusing board_fit_config_name_match() to automatically
select a sensible default configuration for booting fitImages
using 'bootm'.
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
common/image-fit.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/common/image-fit.c b/common/image-fit.c
index c82d4d8015f0..52c194222735 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -1741,6 +1741,12 @@ int fit_conf_get_node(const void *fit, const char *conf_uname)
if (conf_uname == NULL) {
/* get configuration unit name from the default property */
debug("No configuration specified, trying default...\n");
+#if !defined(USE_HOSTCC) && defined(CONFIG_MULTI_DTB_FIT)
+ noffset = fit_find_config_node(fit);
+ if (noffset < 0)
+ return noffset;
+ conf_uname = fdt_get_name(fit, noffset, NULL);
+#else
conf_uname = (char *)fdt_getprop(fit, confs_noffset,
FIT_DEFAULT_PROP, &len);
if (conf_uname == NULL) {
@@ -1748,6 +1754,7 @@ int fit_conf_get_node(const void *fit, const char *conf_uname)
len);
return len;
}
+#endif
debug("Found default configuration: '%s'\n", conf_uname);
}
--
2.29.2
next prev parent reply other threads:[~2020-12-08 18:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-08 18:10 [PATCH 0/3] GE Bx50v3 cleanups Sebastian Reichel
2020-12-08 18:10 ` Sebastian Reichel [this message]
2020-12-12 15:39 ` [PATCH 1/3] image: support board_fit_config_name_match Simon Glass
2020-12-12 17:05 ` Sebastian Reichel
2020-12-12 17:24 ` Simon Glass
2020-12-08 18:10 ` [PATCH 2/3] board: ge: bx50v3: remove confidx magic numbers Sebastian Reichel
2020-12-08 18:10 ` [PATCH 3/3] board: ge: bx50v3: cleanup phy config Sebastian Reichel
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=20201208181013.87309-2-sebastian.reichel@collabora.com \
--to=sebastian.reichel@collabora.com \
--cc=u-boot@lists.denx.de \
/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.