aboutsummaryrefslogtreecommitdiff
path: root/include/env.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-08-01 09:46:43 -0600
committerTom Rini <trini@konsulko.com>2019-08-11 16:43:41 -0400
commit4bfd1f5d626778dd17f9827e5c462cc2697e0e90 (patch)
tree330bf6736371dbc158c9d4be7767df526ed8c4cf /include/env.h
parent3a7d55716d6bfe5122de9692383357344fff2a94 (diff)
downloadu-boot-4bfd1f5d626778dd17f9827e5c462cc2697e0e90.zip
u-boot-4bfd1f5d626778dd17f9827e5c462cc2697e0e90.tar.gz
u-boot-4bfd1f5d626778dd17f9827e5c462cc2697e0e90.tar.bz2
env: Move env_init() to env.h
Move env_init() over to the new header file. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/env.h')
-rw-r--r--include/env.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/env.h b/include/env.h
index 19b559a..5d205ef 100644
--- a/include/env.h
+++ b/include/env.h
@@ -22,6 +22,16 @@
int env_get_id(void);
/**
+ * env_init() - Set up the pre-relocation environment
+ *
+ * This locates the environment or uses the default if nothing is available.
+ * This must be called before env_get() will work.
+ *
+ * @return 0 if OK, -ENODEV if no environment drivers are enabled
+ */
+int env_init(void);
+
+/**
* env_get_f() - Look up the value of an environment variable (early)
*
* This function is called from env_get() if the environment has not been