summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2020-07-28 11:51:20 +0200
committerTom Rini <trini@konsulko.com>2020-07-31 10:13:00 -0400
commit0115dd3a6a144e9c974e00a9f3f41c5bb053236e (patch)
treeb493f2af6ae993f3fe319d5f97c3833d160041af /include
parent466d9855d4ee828c998ee3ea29e5685e38d3064e (diff)
downloadu-boot-0115dd3a6a144e9c974e00a9f3f41c5bb053236e.tar.gz
u-boot-0115dd3a6a144e9c974e00a9f3f41c5bb053236e.tar.xz
u-boot-0115dd3a6a144e9c974e00a9f3f41c5bb053236e.zip
cmd: env: add env load command
Add the new command env load to load the environment from the current location gd->env_load_prio. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'include')
-rw-r--r--include/env.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/env.h b/include/env.h
index d6c2d751d6..68e0f4fa56 100644
--- a/include/env.h
+++ b/include/env.h
@@ -266,6 +266,13 @@ int env_set_default_vars(int nvars, char *const vars[], int flags);
int env_load(void);
/**
+ * env_reload() - Re-Load the environment from current storage
+ *
+ * @return 0 if OK, -ve on error
+ */
+int env_reload(void);
+
+/**
* env_save() - Save the environment to storage
*
* @return 0 if OK, -ve on error