fb69464e | 23-Jan-2018 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
env: Allow to build multiple environments in Kconfig
Now that we have everything in place in the code, let's allow to build multiple environments backend through Kconfig.
Reviewed-by: Andre Przywar
env: Allow to build multiple environments in Kconfig
Now that we have everything in place in the code, let's allow to build multiple environments backend through Kconfig.
Reviewed-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
show more ...
|
d282a1db | 23-Jan-2018 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
env: mmc: depends on the MMC framework
The raw MMC environment directly calls into the MMC framework. Make sure it's enabled before we can select it.
Reviewed-by: Simon Glass <sjg@chromium.org> Sig
env: mmc: depends on the MMC framework
The raw MMC environment directly calls into the MMC framework. Make sure it's enabled before we can select it.
Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
show more ...
|
1d446087 | 23-Jan-2018 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
env: Initialise all the environments
Since we want to have multiple environments, we will need to initialise all the environments since we don't know at init time what drivers might fail when callin
env: Initialise all the environments
Since we want to have multiple environments, we will need to initialise all the environments since we don't know at init time what drivers might fail when calling load.
Let's init all of them, and only consider for further operations the ones that have not reported any errors at init time.
Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
show more ...
|
7d714a24 | 23-Jan-2018 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
env: Support multiple environments
Now that we have everything in place to support multiple environment, let's make sure the current code can use it.
The priority used between the various environme
env: Support multiple environments
Now that we have everything in place to support multiple environment, let's make sure the current code can use it.
The priority used between the various environment is the same one that was used in the code previously.
At read / init times, the highest priority environment is going to be detected, and we'll use the same one without lookup during writes. This should implement the same behaviour than we currently have.
Reviewed-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
show more ...
|
58ae9990 | 23-Jan-2018 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
env: common: Make the debug messages play a little nicer
Since we have global messages to indicate what's going on, the custom messages in the environment drivers only make the output less readable.
env: common: Make the debug messages play a little nicer
Since we have global messages to indicate what's going on, the custom messages in the environment drivers only make the output less readable.
Make the common code play a little nicer by removing all the extra output in the standard case.
Reviewed-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
show more ...
|
29b8f210 | 23-Jan-2018 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
env: mmc: Make the debug messages play a little nicer
Since we have global messages to indicate what's going on, the custom messages in the environment drivers only make the output less readable.
M
env: mmc: Make the debug messages play a little nicer
Since we have global messages to indicate what's going on, the custom messages in the environment drivers only make the output less readable.
Make MMC play a little nicer by removing all the extra \n and formatting that is redundant with the global output.
Reviewed-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
show more ...
|
d0816da5 | 23-Jan-2018 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
env: fat: Make the debug messages play a little nicer
Since we have global messages to indicate what's going on, the custom messages in the environment drivers only make the output less readable.
M
env: fat: Make the debug messages play a little nicer
Since we have global messages to indicate what's going on, the custom messages in the environment drivers only make the output less readable.
Make FAT play a little nicer by removing all the extra \n and formatting that is redundant with the global output.
Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
show more ...
|
3574ba01 | 23-Jan-2018 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
env: Make it explicit where we're loading our environment from
Since we can have multiple environments now, it's better to provide a decent indication on what environments were tried and which were
env: Make it explicit where we're loading our environment from
Since we can have multiple environments now, it's better to provide a decent indication on what environments were tried and which were the one to fail and succeed.
Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
show more ...
|
9efac3c8 | 23-Jan-2018 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
env: Make the env save message a bit more explicit
Since we'll soon have support for multiple environments, the environment saving message might end up being printed multiple times if the higher pri
env: Make the env save message a bit more explicit
Since we'll soon have support for multiple environments, the environment saving message might end up being printed multiple times if the higher priority environment cannot be used.
That might confuse the user, so let's make it explicit if the operation failed or not.
Reviewed-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
show more ...
|
8a3a7e22 | 23-Jan-2018 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
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 prio
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>
show more ...
|
52746c43 | 23-Jan-2018 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
env: Rename env_driver_lookup_default and env_get_default_location
The env_driver_lookup_default and env_get_default_location functions are about to get refactored to support loading from multiple e
env: Rename env_driver_lookup_default and env_get_default_location
The env_driver_lookup_default and env_get_default_location functions are about to get refactored to support loading from multiple environment.
The name is therefore not really well suited anymore. Drop the default part to be a bit more relevant.
Reviewed-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
show more ...
|