env: Create a location driver for each location
[oweals/u-boot.git] / env / remote.c
index e003e02fb9ec6c8ec8035a220eeec049bcc941de..c221d55c4f7920eeae88b6c855c8a3b3e6e2df5c 100644 (file)
@@ -56,3 +56,11 @@ void env_relocate_spec(void)
        env_import((char *)env_ptr, 1);
 #endif
 }
+
+U_BOOT_ENV_LOCATION(remote) = {
+       .location       = ENVL_REMOTE,
+       .get_char       = env_get_char_spec,
+       .load           = env_relocate_spec,
+       .save           = env_save_ptr(saveenv),
+       .init           = env_init,
+};