]> Git Repo - J-u-boot.git/blobdiff - env/nand.c
env: mmc: Add missing eMMC bootpart restoration to env erase
[J-u-boot.git] / env / nand.c
index 8b0027d30472fe2cef56f13c95d2fcba739436c9..be82e97d69cd878b78269fb779f229e587aec426 100644 (file)
@@ -17,6 +17,7 @@
 #include <command.h>
 #include <env.h>
 #include <env_internal.h>
+#include <asm/global_data.h>
 #include <linux/stddef.h>
 #include <malloc.h>
 #include <memalign.h>
@@ -331,7 +332,7 @@ static int env_nand_load(void)
        read2_fail = readenv(CONFIG_ENV_OFFSET_REDUND, (u_char *) tmp_env2);
 
        ret = env_import_redund((char *)tmp_env1, read1_fail, (char *)tmp_env2,
-                               read2_fail);
+                               read2_fail, H_EXTERNAL);
 
 done:
        free(tmp_env1);
@@ -372,7 +373,7 @@ static int env_nand_load(void)
                return -EIO;
        }
 
-       return env_import(buf, 1);
+       return env_import(buf, 1, H_EXTERNAL);
 #endif /* ! ENV_IS_EMBEDDED */
 
        return 0;
This page took 0.025593 seconds and 4 git commands to generate.