]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/env_common.c
* Patch by Thomas Frieden, 13 Nov 2002:
[karo-tx-uboot.git] / common / env_common.c
index f7f268e7b0395d17d2f653a4af017d927a6e6a35..bd22e154281b26cbe4ff7af243c100db3c20d9c5 100644 (file)
 # define SHOW_BOOT_PROGRESS(arg)
 #endif
 
+#ifdef CONFIG_AMIGAONEG3SE
+       extern void enable_nvram(void);
+       extern void disable_nvram(void);
+#endif
+
 #undef DEBUG_ENV
 #ifdef DEBUG_ENV
 #define DEBUGF(fmt,args...) printf(fmt ,##args)
@@ -180,6 +185,10 @@ void env_relocate (void)
        DEBUGF ("%s[%d] offset = 0x%lx\n", __FUNCTION__,__LINE__,
                gd->reloc_off);
 
+#ifdef CONFIG_AMIGAONEG3SE
+       enable_nvram();
+#endif
+
 #ifdef ENV_IS_EMBEDDED
        /*
         * The environment buffer is embedded with the text segment,
@@ -228,4 +237,8 @@ void env_relocate (void)
                env_relocate_spec ();
        }
        gd->env_addr = (ulong)&(env_ptr->data);
+
+#ifdef CONFIG_AMIGAONEG3SE
+       disable_nvram();
+#endif
 }