]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/env_flash.c
dataflash mmc mux: use common cmd_usage function
[karo-tx-uboot.git] / common / env_flash.c
index 00792cd38cf4311e9a549846d4da2ba8382e5a67..925c5a02dfb32b1fd6c8b8a1c9b12761ac99b172 100644 (file)
@@ -44,12 +44,6 @@ DECLARE_GLOBAL_DATA_PTR;
 #error CONFIG_ENV_SIZE_REDUND should not be less then CONFIG_ENV_SIZE
 #endif
 
-#ifdef CONFIG_INFERNO
-# ifdef CONFIG_ENV_ADDR_REDUND
-#error CONFIG_ENV_ADDR_REDUND is not implemented for CONFIG_INFERNO
-# endif
-#endif
-
 char * env_name_spec = "Flash";
 
 #ifdef ENV_IS_EMBEDDED
@@ -77,13 +71,9 @@ static env_t *flash_addr_new = (env_t *)CONFIG_ENV_ADDR_REDUND;
 /* CONFIG_ENV_ADDR is supposed to be on sector boundary */
 static ulong end_addr = CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE - 1;
 static ulong end_addr_new = CONFIG_ENV_ADDR_REDUND + CONFIG_ENV_SECT_SIZE - 1;
-
-#define ACTIVE_FLAG   1
-#define OBSOLETE_FLAG 0
 #endif /* CONFIG_ENV_ADDR_REDUND */
 
 extern uchar default_environment[];
-extern int default_environment_size;
 
 
 uchar env_get_char_spec (int index)
@@ -295,13 +285,7 @@ int saveenv(void)
        len      = CONFIG_ENV_SIZE;
 #endif /* CONFIG_ENV_SECT_SIZE */
 
-#ifndef CONFIG_INFERNO
        end_addr = flash_sect_addr + len - 1;
-#else
-       /* this is the last sector, and the size is hardcoded here */
-       /* otherwise we will get stack problems on loading 128 KB environment */
-       end_addr = flash_sect_addr + 0x20000 - 1;
-#endif
 
        debug ("Protect off %08lX ... %08lX\n",
                (ulong)flash_sect_addr, end_addr);