X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fbinman.h;h=5958dfb44852062175038ec9cf01fd86b961bbb9;hb=64cfeda8ae2e95751c5d2dfa4dc4a906478ae2f6;hp=8b89a9666d5940bfdba8694928e3c2dc58c4e607;hpb=63d4607e03e5f1f7ab9a18bc640e31f7d28874b4;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/binman.h b/include/binman.h index 8b89a96..5958dfb 100644 --- a/include/binman.h +++ b/include/binman.h @@ -71,6 +71,20 @@ int binman_entry_find(const char *name, struct binman_entry *entry); ofnode binman_section_find_node(const char *name); /** + * binman_select_subnode() - Select a subnode to use to find entries + * + * Normally binman selects the top-level node for future entry requests, such as + * binman_entry_find(). This function allows a subnode to be chosen instead. + * + * @name: Name of subnode, typically a section. This must be in the top-level + * binman node + * @return 0 if OK, -EINVAL if there is no /binman node, -ECHILD if multiple + * images are being used but the first image is not available, -ENOENT if + * the requested subnode cannot be found + */ +int binman_select_subnode(const char *name); + +/** * binman_init() - Set up the binman symbol information * * This locates the binary symbol information in the device tree ready for use