aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@seco.com>2021-03-31 14:32:27 -0400
committerTom Rini <trini@konsulko.com>2021-04-14 15:23:01 -0400
commitd442f69399996d426cdc45ce40bcf1e48d9cd8b9 (patch)
tree62dda82e4db1509b5df7a9e3927936de47efe1ca /common
parent6795c751098810c3f8489d94d5a7cba430bade6d (diff)
downloadu-boot-d442f69399996d426cdc45ce40bcf1e48d9cd8b9.zip
u-boot-d442f69399996d426cdc45ce40bcf1e48d9cd8b9.tar.gz
u-boot-d442f69399996d426cdc45ce40bcf1e48d9cd8b9.tar.bz2
common: fit: Add weak board_fit_config_name_match
Several architectures had a default board_fit_config_name_match already; this provides a generic weak version. We default to rejecting all configs. This will use the FIT's default config, instead of the first config. This may result in boot failures if there are multiple configurations and the first config is *not* the default. Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Diffstat (limited to 'common')
-rw-r--r--common/common_fit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/common_fit.c b/common/common_fit.c
index 219674d..cde2dc4 100644
--- a/common/common_fit.c
+++ b/common/common_fit.c
@@ -22,6 +22,11 @@ ulong fdt_getprop_u32(const void *fdt, int node, const char *prop)
return fdt32_to_cpu(*cell);
}
+__weak int board_fit_config_name_match(const char *name)
+{
+ return -EINVAL;
+}
+
/*
* Iterate over all /configurations subnodes and call a platform specific
* function to find the matching configuration.