From 4bfd1f5d626778dd17f9827e5c462cc2697e0e90 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 1 Aug 2019 09:46:43 -0600 Subject: env: Move env_init() to env.h Move env_init() over to the new header file. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- include/env.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/env.h') 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 -- cgit v1.1