aboutsummaryrefslogtreecommitdiff
path: root/boot/image-fit.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-10-20 18:23:00 -0600
committerTom Rini <trini@konsulko.com>2022-10-31 11:02:44 -0400
commit494e66d3a9abc5b47258a9f2d7b41f1341015c44 (patch)
tree52a6350c77970954ac65911ebb58820acf270c31 /boot/image-fit.c
parent0b5c9b03a1edff9e43fee287febeabd573dadd96 (diff)
downloadu-boot-494e66d3a9abc5b47258a9f2d7b41f1341015c44.zip
u-boot-494e66d3a9abc5b47258a9f2d7b41f1341015c44.tar.gz
u-boot-494e66d3a9abc5b47258a9f2d7b41f1341015c44.tar.bz2
image: Move comment for fit_conf_find_compat()
Move this comment to the header file, where the APIs should be defined. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/image-fit.c')
-rw-r--r--boot/image-fit.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/boot/image-fit.c b/boot/image-fit.c
index 6e503f8..02f1d28 100644
--- a/boot/image-fit.c
+++ b/boot/image-fit.c
@@ -1686,49 +1686,6 @@ int fit_check_format(const void *fit, ulong size)
return 0;
}
-/**
- * fit_conf_find_compat
- * @fit: pointer to the FIT format image header
- * @fdt: pointer to the device tree to compare against
- *
- * fit_conf_find_compat() attempts to find the configuration whose fdt is the
- * most compatible with the passed in device tree.
- *
- * Example:
- *
- * / o image-tree
- * |-o images
- * | |-o fdt-1
- * | |-o fdt-2
- * |
- * |-o configurations
- * |-o config-1
- * | |-fdt = fdt-1
- * |
- * |-o config-2
- * |-fdt = fdt-2
- *
- * / o U-Boot fdt
- * |-compatible = "foo,bar", "bim,bam"
- *
- * / o kernel fdt1
- * |-compatible = "foo,bar",
- *
- * / o kernel fdt2
- * |-compatible = "bim,bam", "baz,biz"
- *
- * Configuration 1 would be picked because the first string in U-Boot's
- * compatible list, "foo,bar", matches a compatible string in the root of fdt1.
- * "bim,bam" in fdt2 matches the second string which isn't as good as fdt1.
- *
- * As an optimization, the compatible property from the FDT's root node can be
- * copied into the configuration node in the FIT image. This is required to
- * match configurations with compressed FDTs.
- *
- * returns:
- * offset to the configuration to use if one was found
- * -1 otherwise
- */
int fit_conf_find_compat(const void *fit, const void *fdt)
{
int ndepth = 0;