]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - env/sata.c
env: Create a location driver for each location
[people/ms/u-boot.git] / env / sata.c
index 64589117f25a357758b12483a1bc9c62b4450ce0..f7b159a3471cf9c27dabe76c52b916177eabe916 100644 (file)
@@ -125,3 +125,11 @@ void env_relocate_spec(void)
 
        env_import(buf, 1);
 }
+
+U_BOOT_ENV_LOCATION(sata) = {
+       .location       = ENVL_ESATA,
+       .get_char       = env_get_char_spec,
+       .load           = env_relocate_spec,
+       .save           = env_save_ptr(saveenv),
+       .init           = env_init,
+};