public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/5] nios2: Calculate the env position from monitor size
@ 2015-12-15  2:09 Marek Vasut
  2015-12-15  2:09 ` [U-Boot] [PATCH 2/5] nios2: Up the monitor size to 512kiB Marek Vasut
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: Marek Vasut @ 2015-12-15  2:09 UTC (permalink / raw)
  To: u-boot

Reorder the 10m50 and 3c120 config files such, that the environment
position can be calculated from the monitor size. The environment is
placed right after the monitor. This removes one more ad-hoc variable.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Thomas Chou <thomas@wytron.com.tw>
---
 include/configs/10m50_devboard.h | 26 +++++++++++++-------------
 include/configs/3c120_devboard.h | 26 +++++++++++++-------------
 2 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/include/configs/10m50_devboard.h b/include/configs/10m50_devboard.h
index 8a91cdb..c99177c 100644
--- a/include/configs/10m50_devboard.h
+++ b/include/configs/10m50_devboard.h
@@ -54,19 +54,6 @@
 #define CONFIG_LMB
 
 /*
- * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above
- * CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the
- * reset address, no? This will keep the environment in user region
- * of flash. NOTE: the monitor length must be multiple of sector size
- * (which is common practice).
- */
-#define CONFIG_ENV_IS_IN_FLASH
-
-#define CONFIG_ENV_SIZE			0x10000	/* 64k, 1 sector */
-#define CONFIG_ENV_OVERWRITE		/* Serial change Ok	*/
-#define CONFIG_ENV_ADDR			0xf4040000
-
-/*
  * MEMORY ORGANIZATION
  * -Monitor at top of sdram.
  * -The heap is placed below the monitor
@@ -83,6 +70,19 @@
 #define CONFIG_SYS_MALLOC_LEN		0x20000
 
 /*
+ * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above
+ * CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the
+ * reset address, no? This will keep the environment in user region
+ * of flash. NOTE: the monitor length must be multiple of sector size
+ * (which is common practice).
+ */
+#define CONFIG_ENV_IS_IN_FLASH
+
+#define CONFIG_ENV_SIZE			0x10000	/* 64k, 1 sector */
+#define CONFIG_ENV_OVERWRITE		/* Serial change Ok	*/
+#define CONFIG_ENV_ADDR			(0xf4000000 + CONFIG_SYS_MONITOR_LEN)
+
+/*
  * MISC
  */
 #define CONFIG_SYS_LONGHELP		/* Provide extended help */
diff --git a/include/configs/3c120_devboard.h b/include/configs/3c120_devboard.h
index 2ecdd5d..0f494e5 100644
--- a/include/configs/3c120_devboard.h
+++ b/include/configs/3c120_devboard.h
@@ -57,19 +57,6 @@
 #define CONFIG_LMB
 
 /*
- * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above
- * CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the
- * reset address, no? This will keep the environment in user region
- * of flash. NOTE: the monitor length must be multiple of sector size
- * (which is common practice).
- */
-#define CONFIG_ENV_IS_IN_FLASH
-
-#define CONFIG_ENV_SIZE			0x20000	/* 128k, 1 sector */
-#define CONFIG_ENV_OVERWRITE		/* Serial change Ok	*/
-#define CONFIG_ENV_ADDR			0xe2840000
-
-/*
  * MEMORY ORGANIZATION
  * -Monitor at top of sdram.
  * -The heap is placed below the monitor
@@ -86,6 +73,19 @@
 #define CONFIG_SYS_MALLOC_LEN		0x20000
 
 /*
+ * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above
+ * CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the
+ * reset address, no? This will keep the environment in user region
+ * of flash. NOTE: the monitor length must be multiple of sector size
+ * (which is common practice).
+ */
+#define CONFIG_ENV_IS_IN_FLASH
+
+#define CONFIG_ENV_SIZE			0x20000	/* 128k, 1 sector */
+#define CONFIG_ENV_OVERWRITE		/* Serial change Ok	*/
+#define CONFIG_ENV_ADDR			(0xe2800000 + CONFIG_SYS_MONITOR_LEN)
+
+/*
  * MISC
  */
 #define CONFIG_SYS_LONGHELP		/* Provide extended help */
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-12-16  0:13 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-15  2:09 [U-Boot] [PATCH 1/5] nios2: Calculate the env position from monitor size Marek Vasut
2015-12-15  2:09 ` [U-Boot] [PATCH 2/5] nios2: Up the monitor size to 512kiB Marek Vasut
2015-12-15  5:25   ` Thomas Chou
2015-12-15 13:17   ` Thomas Chou
2015-12-15  2:09 ` [U-Boot] [PATCH 3/5] nios2: Preconfigure $loadaddr variable Marek Vasut
2015-12-15  5:26   ` Thomas Chou
2015-12-15 13:17   ` Thomas Chou
2015-12-15  2:09 ` [U-Boot] [PATCH 4/5] nios2: Enable support for fitImage Marek Vasut
2015-12-15  5:31   ` Thomas Chou
2015-12-15 10:26     ` Marek Vasut
2015-12-15 13:26       ` Thomas Chou
2015-12-15 23:18         ` Marek Vasut
2015-12-16  0:13           ` Thomas Chou
2015-12-15  2:09 ` [U-Boot] [PATCH 5/5] nios2: Soup up the shell experience Marek Vasut
2015-12-15  5:33   ` Thomas Chou
2015-12-15 10:27     ` Marek Vasut
2015-12-15 23:18     ` Marek Vasut
2015-12-15  5:25 ` [U-Boot] [PATCH 1/5] nios2: Calculate the env position from monitor size Thomas Chou
2015-12-15 13:16 ` Thomas Chou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox