aboutsummaryrefslogtreecommitdiff
path: root/env/ext4.c
diff options
context:
space:
mode:
Diffstat (limited to 'env/ext4.c')
-rw-r--r--env/ext4.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/env/ext4.c b/env/ext4.c
index 3f3aac5..6c69a0a 100644
--- a/env/ext4.c
+++ b/env/ext4.c
@@ -87,6 +87,9 @@ static int env_ext4_load(void)
int err;
loff_t off;
+ if (!strcmp(CONFIG_ENV_EXT4_INTERFACE, "mmc"))
+ mmc_initialize(NULL);
+
part = blk_get_device_part_str(CONFIG_ENV_EXT4_INTERFACE,
CONFIG_ENV_EXT4_DEVICE_AND_PART,
&dev_desc, &info, 1);