u-boot-brain/env
Maxime Ripard 8a3a7e2270 env: Pass additional parameters to the env lookup function
In preparation for the multiple environment support, let's introduce two
new parameters to the environment driver lookup function: the priority and
operation.

The operation parameter is meant to identify, obviously, the operation you
might want to perform on the environment.

The priority is a number passed to identify the environment priority you
want to retrieve. The lowest priority parameter (0) will be the primary
source.

Combining the two parameters allow you to support multiple environments
through different priorities, and to change those priorities between read
and writes operations.

This is especially useful to implement migration mechanisms where you want
to always use the same environment first, be it to read or write, while the
common case is more likely to use the same environment it has read from to
write it to.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
2018-01-27 09:19:11 -05:00
..
attr.c Move environment files from common/ to env/ 2017-08-15 08:18:45 -04:00
callback.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
common.c env: Remove CONFIG_ENV_AES support 2017-11-21 07:43:31 -05:00
eeprom.c env: Replace all open-coded gd->env_valid values with ENV_ flags 2017-08-20 19:27:44 -04:00
embedded.c Move environment files from common/ to env/ 2017-08-15 08:18:45 -04:00
env.c env: Pass additional parameters to the env lookup function 2018-01-27 09:19:11 -05:00
ext4.c env: enable accessing the environment in an EXT4 partition 2018-01-15 16:28:57 -05:00
fat.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
flags.c env: Rename some other getenv()-related functions 2017-08-16 08:31:11 -04:00
flash.c env: Replace all open-coded gd->env_valid values with ENV_ flags 2017-08-20 19:27:44 -04:00
Kconfig env: ENV_IS_IN_FAT improvements 2018-01-22 16:43:31 -05:00
Makefile env: Drop CONFIG_ENV_IS_IN_DATAFLASH 2017-10-16 09:42:51 -04:00
mmc.c env: suppress a spurious warning with GCC 7.1 2017-11-29 22:36:58 -05:00
nand.c env: Replace all open-coded gd->env_valid values with ENV_ flags 2017-08-20 19:27:44 -04:00
nowhere.c env: Correct case of no sub-init function 2017-08-20 19:27:28 -04:00
nvram.c env: Replace all open-coded gd->env_valid values with ENV_ flags 2017-08-20 19:27:44 -04:00
onenand.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
remote.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
sata.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
sf.c env: sf: Add support for env init for QSPI-NOR 2018-01-17 10:30:54 -08:00
ubi.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00