diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/common.h | 3 | ||||
| -rw-r--r-- | include/image.h | 12 |
2 files changed, 12 insertions, 3 deletions
diff --git a/include/common.h b/include/common.h index 5e38c5fc582..c69bad97714 100644 --- a/include/common.h +++ b/include/common.h @@ -59,9 +59,6 @@ void hang (void) __attribute__ ((noreturn)); #include <display_options.h> -/* common/cmd_source.c */ -int source (ulong addr, const char *fit_uname); - /* common/memsize.c */ long get_ram_size (long *, long); phys_size_t get_effective_memsize(void); diff --git a/include/image.h b/include/image.h index 3649644cf1d..9c6b6d6054b 100644 --- a/include/image.h +++ b/include/image.h @@ -674,6 +674,18 @@ int fit_image_load(bootm_headers_t *images, ulong addr, int arch, int image_type, int bootstage_id, enum fit_load_op load_op, ulong *datap, ulong *lenp); +/** + * image_source_script() - Execute a script + * + * Executes a U-Boot script at a particular address in memory. The script should + * have a header (FIT or legacy) with the script type (IH_TYPE_SCRIPT). + * + * @addr: Address of script + * @fit_uname: FIT subimage name + * @return result code (enum command_ret_t) + */ +int image_source_script(ulong addr, const char *fit_uname); + #ifndef USE_HOSTCC /** * fit_get_node_from_config() - Look up an image a FIT by type |
