diff options
author | Michael Heimpold <mhei@heimpold.de> | 2013-04-10 14:36:19 +0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-05-02 00:41:10 +0400 |
commit | d196bd880347373237d73e0d115b4d51c68cf2ad (patch) | |
tree | 3a4b4cc54e282831b6e800688ca35e60d9077322 /board/freescale/common/sdhc_boot.c | |
parent | d2eae43ba803cff75b44a07d08d718ecdecdee94 (diff) | |
download | u-boot-d196bd880347373237d73e0d115b4d51c68cf2ad.tar.xz |
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.c | 2 |
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; |