summaryrefslogtreecommitdiff
path: root/board/freescale/common/sdhc_boot.c
diff options
context:
space:
mode:
authorMichael Heimpold <mhei@heimpold.de>2013-04-10 10:36:19 +0000
committerTom Rini <trini@ti.com>2013-05-01 16:41:10 -0400
commitd196bd880347373237d73e0d115b4d51c68cf2ad (patch)
tree3a4b4cc54e282831b6e800688ca35e60d9077322 /board/freescale/common/sdhc_boot.c
parentd2eae43ba803cff75b44a07d08d718ecdecdee94 (diff)
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. Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Diffstat (limited to 'board/freescale/common/sdhc_boot.c')
-rw-r--r--board/freescale/common/sdhc_boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/common/sdhc_boot.c b/board/freescale/common/sdhc_boot.c
index e4323181fc..fd0e910d7b 100644
--- a/board/freescale/common/sdhc_boot.c
+++ b/board/freescale/common/sdhc_boot.c
@@ -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;