From e5bce247b01ae057f05cc80178f0df28ec1d27a7 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 3 Aug 2017 12:22:01 -0600 Subject: env: Switch over to use environment location drivers Move over to use a the master implementation of the location drivers, with each method calling out to the appropriate driver. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- env/env.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'env/env.c') diff --git a/env/env.c b/env/env.c index 9f0a04c33c..d327f9cdff 100644 --- a/env/env.c +++ b/env/env.c @@ -143,3 +143,23 @@ int env_init_new(void) return 0; } + +unsigned char env_get_char_spec(int index) +{ + return *(uchar *)(gd->env_addr + index); +} + +void env_relocate_spec(void) +{ + env_load(); +} + +int saveenv(void) +{ + return env_save(); +} + +int env_init(void) +{ + return env_init_new(); +} -- cgit v1.2.3