]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitb40896f43b9a797db9bfe4956752b62bc9b5a658
treeab11a71616bc9d5534d4b633520819c1b9be8b9c
parent884756572623be1027e3b46e74eb3754b2bb4086
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