]> git.sur5r.net Git - u-boot/commit
env: Support multiple environments
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 23 Jan 2018 20:16:58 +0000 (21:16 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 27 Jan 2018 14:21:57 +0000 (09:21 -0500)
commit7d714a24d7258db1188abe3c7c9c46a1cc7ab8be
tree86ed9e9611cbbc2b777915aab48365925a8d7fa0
parent58ae9990c0280ff5382d826ad752512baad223a8
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>
env/env.c