mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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:
20
env/env.c
vendored
20
env/env.c
vendored
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user