Skip to contentSkip to conversation

env_mmc: add support for redundant environment

PATCH RESEND New Michael Heimpold 1 participant 1 message Apr 26, 2013

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 env_mmc: add support for redundant environment

This patch add support for storing the environment redundant on mmc devices. Substantially it re-uses the logic from the NAND implementation, that means using an incremental counter for marking newer data.

---
 board/freescale/common/sdhc_boot.c |    2 +-
 common/env_mmc.c                   |  133 +++++++++++++++++++++++++++++++++---
 2 files changed, 124 insertions(+), 11 deletions(-)
board/freescale/common/sdhc_boot.c +1 -1
index e432318..fd0e910 100644
@@ -32,7 +32,7 @@
 #define ESDHC_BOOT_IMAGE_SIZE	0x48
 #define ESDHC_BOOT_IMAGE_ADDR	0x50
 
-int mmc_get_env_addr(struct mmc *mmc, u32 *env_addr)
+int mmc_get_env_addr(struct mmc *mmc, int copy, u32 *env_addr)
 {
 	u8 *tmp_buf;
 	u32 blklen, code_offset, code_len, n;
common/env_mmc.c +123 -10

191 lines not on this page · raw message

Signature · 1 line
1.7.10.4