summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2010-06-20 21:26:20 +0200
committerWolfgang Denk <wd@denx.de>2010-07-04 23:48:55 +0200
commit0e70aaa485384fda5f757d5a1bd106b359c06e9c (patch)
treed9a439fdfa73306118237f5dee522fe3722bf41b /common
parent9add504f0d60bce62fdc6a2161e8ba326cf42ee9 (diff)
downloadu-boot-imx-0e70aaa485384fda5f757d5a1bd106b359c06e9c.zip
u-boot-imx-0e70aaa485384fda5f757d5a1bd106b359c06e9c.tar.gz
u-boot-imx-0e70aaa485384fda5f757d5a1bd106b359c06e9c.tar.bz2
shannon/INFERNO: fix special handling of environment configuration
Remove some INFERNO related #ifdef's from common environment code by fixing the board configuration settings (add CONFIG_ENV_SECT_SIZE). While we are at it, fix comment which incorrectly talks about 4 KB environment size, while it's actually 0x4000 = 16 KiB. Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Rolf Offermanns <rof@sysgo.de>
Diffstat (limited to 'common')
-rw-r--r--common/env_flash.c12
-rw-r--r--common/env_nand.c4
2 files changed, 0 insertions, 16 deletions
diff --git a/common/env_flash.c b/common/env_flash.c
index b860c48..ef0582d 100644
--- a/common/env_flash.c
+++ b/common/env_flash.c
@@ -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
@@ -294,13 +288,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);
diff --git a/common/env_nand.c b/common/env_nand.c
index a15a950..50bc111 100644
--- a/common/env_nand.c
+++ b/common/env_nand.c
@@ -49,10 +49,6 @@
#error CONFIG_ENV_SIZE_REDUND should be the same as CONFIG_ENV_SIZE
#endif
-#ifdef CONFIG_INFERNO
-#error CONFIG_INFERNO not supported yet
-#endif
-
#ifndef CONFIG_ENV_RANGE
#define CONFIG_ENV_RANGE CONFIG_ENV_SIZE
#endif