summaryrefslogtreecommitdiff
path: root/include/configs/MCR3000.h
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2018-03-16 17:20:55 +0100
committerTom Rini <trini@konsulko.com>2018-04-06 16:30:37 -0400
commit0fb62205652a1327eb79ea1c84649493e7f628fa (patch)
tree9d494b2809059318d775da574b4d3be0824d0af2 /include/configs/MCR3000.h
parent23ac79ff8011c290cc1755b8ab510df80e614db6 (diff)
board: MCR3000: Use smaller flash sector for environment
Latest versions of u-boot have increased in size and require more than the 256kb allocated to it. The MCR3000 board is equipped with an AM29LV160DB boot flash which is organised as follows: - One 16kb block - Two 8kb block - One 32kb block - Thirty one 64kb blocks At the time being, u-boot is a single piece occupying the 256 first kbytes, then the environment is stored in the following 64kb block The environment being quite tiny, we save one 64kb block by embedding the environment in the first 8kb block, hence allowing to increase the monitor size to 320kb. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Diffstat (limited to 'include/configs/MCR3000.h')
-rw-r--r--include/configs/MCR3000.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/configs/MCR3000.h b/include/configs/MCR3000.h
index 7e9fe3800d..cb28d6522a 100644
--- a/include/configs/MCR3000.h
+++ b/include/configs/MCR3000.h
@@ -93,15 +93,15 @@
* the maximum mapped by the Linux kernel during initialization.
*/
#define CONFIG_SYS_BOOTMAPSZ (8 << 20)
-#define CONFIG_SYS_MONITOR_LEN (256 << 10)
+#define CONFIG_SYS_MONITOR_LEN (320 << 10)
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
#define CONFIG_SYS_MALLOC_LEN (4096 << 10)
/* Environment Configuration */
/* environment is in FLASH */
-#define CONFIG_ENV_SECT_SIZE (64 * 1024)
-#define CONFIG_ENV_OFFSET CONFIG_SYS_MONITOR_LEN
+#define CONFIG_ENV_SECT_SIZE 0x2000
+#define CONFIG_ENV_OFFSET 0x4000
#define CONFIG_ENV_OVERWRITE 1
/* Ethernet configuration part */