env: mmc: add redundancy support in mmc_offset_try_partition
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 15 Jun 2020 08:38:57 +0000 (10:38 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 26 Jul 2020 18:35:30 +0000 (14:35 -0400)
commit5d4f7b4e2a1a2df459172ec95cbcdd6373dd707a
treeab11a71616bc9d5534d4b633520819c1b9be8b9c
parent76b640c3f2c7299acc5f1e89f8788862667cc5a0
env: mmc: add redundancy support in mmc_offset_try_partition

Manage 2 copy at the end of the partition selected by config
"u-boot,mmc-env-partition" to save the U-Boot environment,
with CONFIG_ENV_SIZE and 2*CONFIG_ENV_SIZE offset.

This patch allows to support redundancy (CONFIG_ENV_OFFSET_REDUND).

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
env/mmc.c