]> Git Repo - J-u-boot.git/blobdiff - env/flash.c
env: mmc: Add missing eMMC bootpart restoration to env erase
[J-u-boot.git] / env / flash.c
index 3198147c380834e8560347e271ef8122f74ccd92..ebee9069e4e3df53c5ceddbce07b91a9c082ee38 100644 (file)
@@ -15,6 +15,7 @@
 #include <env_internal.h>
 #include <flash.h>
 #include <log.h>
+#include <asm/global_data.h>
 #include <linux/stddef.h>
 #include <malloc.h>
 #include <search.h>
@@ -351,7 +352,7 @@ static int env_flash_load(void)
                     "reading environment; recovered successfully\n\n");
 #endif /* CONFIG_ENV_ADDR_REDUND */
 
-       return env_import((char *)flash_addr, 1);
+       return env_import((char *)flash_addr, 1, H_EXTERNAL);
 }
 #endif /* LOADENV */
 
This page took 0.023801 seconds and 4 git commands to generate.