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>
This commit is contained in:
Simon Glass
2017-08-03 12:22:01 -06:00
committed by Tom Rini
parent c9d728dd33
commit e5bce247b0
15 changed files with 128 additions and 114 deletions

20
env/env.c vendored
View File

@ -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();
}