]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - env/mmc.c
env: Create a location driver for each location
[people/ms/u-boot.git] / env / mmc.c
index e387202e714731697800b340b3e19674311d3e31..0d1e8077d3e01787cd3bb89d100fbc0b8b645bd4 100644 (file)
--- a/env/mmc.c
+++ b/env/mmc.c
@@ -324,3 +324,13 @@ err:
 #endif
 }
 #endif /* CONFIG_ENV_OFFSET_REDUND */
+
+U_BOOT_ENV_LOCATION(mmc) = {
+       .location       = ENVL_MMC,
+       .get_char       = env_get_char_spec,
+       .load           = env_relocate_spec,
+#ifndef CONFIG_SPL_BUILD
+       .save           = env_save_ptr(saveenv),
+#endif
+       .init           = env_init,
+};