summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-28 10:45:04 -0700
committerTom Rini <trini@konsulko.com>2020-01-17 14:02:35 -0500
commit220a3a44a339a32b3dae13122ec85ccaede5d988 (patch)
treed679a24b3030851f27f83c7678a0228582e2b544 /include/image.h
parent8e8ccfe1aa1a3ea0cb88b4438c7a687fcf8632a1 (diff)
common: Rename and move source()
This function has a very generic name which does not adequately describe its purpose. Rename it and move it to image.h, since it relates to reading a script from an image. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index 3649644cf1..9c6b6d6054 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