diff options
author | Simon Glass <sjg@chromium.org> | 2017-08-03 12:22:01 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-15 20:50:27 -0400 |
commit | e5bce247b01ae057f05cc80178f0df28ec1d27a7 (patch) | |
tree | 98a5f6c12ce94369f76db33a6347791392003241 /env/env.c | |
parent | c9d728dd33fe7c45711395c72b2113ea7c18fc72 (diff) | |
download | u-boot-e5bce247b01ae057f05cc80178f0df28ec1d27a7.tar.gz |
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 <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'env/env.c')
-rw-r--r-- | env/env.c | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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(); +} |