summaryrefslogtreecommitdiff
path: root/env/nvram.c
diff options
context:
space:
mode:
Diffstat (limited to 'env/nvram.c')
-rw-r--r--env/nvram.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/env/nvram.c b/env/nvram.c
index d046c93..4f45eae 100644
--- a/env/nvram.c
+++ b/env/nvram.c
@@ -112,3 +112,13 @@ int env_init(void)
return 0;
}
+
+U_BOOT_ENV_LOCATION(nvram) = {
+ .location = ENVL_NVRAM,
+#ifdef CONFIG_SYS_NVRAM_ACCESS_ROUTINE
+ .get_char = env_get_char_spec,
+#endif
+ .load = env_relocate_spec,
+ .save = env_save_ptr(saveenv),
+ .init = env_init,
+};