public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] TQM85xx: add support for Spansion 'N' type flashes.
@ 2007-06-22 11:00 Martin Krause
  2007-06-22 11:29 ` Stefan Roese
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Krause @ 2007-06-22 11:00 UTC (permalink / raw)
  To: u-boot

From: Thomas Waehner <thomas.waehner@tqs.de>

The 'N' typ flashes have bigger sectors, than the formerly used 'M' types,
so the flash layout has to be changed -> new start address of the
environment.

Signed-off-by: Martin Krause <martin.krause@tqs.de>
---

 include/configs/TQM85xx.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/configs/TQM85xx.h b/include/configs/TQM85xx.h
index f45f3a2..6c74add 100644
--- a/include/configs/TQM85xx.h
+++ b/include/configs/TQM85xx.h
@@ -149,7 +149,7 @@
 #define CFG_INIT_SP_OFFSET	CFG_GBL_DATA_OFFSET
 
 #define CFG_MONITOR_LEN		(256 * 1024)	/* Reserve 256kB for Mon*/
-#define CFG_MALLOC_LEN		(128 * 1024)	/* Reserved for malloc	*/
+#define CFG_MALLOC_LEN		(256 * 1024)	/* Reserved for malloc	*/
 
 /* Serial Port */
 #if defined(CONFIG_TQM8560)
@@ -346,8 +346,8 @@
  * Environment
  */
 #define CFG_ENV_IS_IN_FLASH	1
-#define CFG_ENV_ADDR		(CFG_MONITOR_BASE - 0x20000)
-#define CFG_ENV_SECT_SIZE	0x20000 /* 128K(one sector) for env	*/
+#define CFG_ENV_ADDR		(CFG_MONITOR_BASE - 0x40000)
+#define CFG_ENV_SECT_SIZE	0x40000 /* 256K(one sector (N)) for env	*/
 #define CFG_ENV_SIZE		0x2000
 #define CFG_ENV_ADDR_REDUND	(CFG_ENV_ADDR-CFG_ENV_SECT_SIZE)
 #define CFG_ENV_SIZE_REDUND	(CFG_ENV_SIZE)

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [U-Boot-Users] [PATCH] TQM85xx: add support for Spansion 'N' type flashes.
@ 2007-06-22 13:00 Martin Krause
  2007-06-23 19:08 ` Andy Fleming
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Krause @ 2007-06-22 13:00 UTC (permalink / raw)
  To: u-boot

From: Thomas Waehner <thomas.waehner@tqs.de>

The 'N' typ flashes have bigger sectors, than the formerly used 'M' types,
so the flash layout has to be changed -> new start address of the
environment.

Signed-off-by: Martin Krause <martin.krause@tqs.de>
---

 include/configs/TQM85xx.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/configs/TQM85xx.h b/include/configs/TQM85xx.h
index f45f3a2..35bfb00 100644
--- a/include/configs/TQM85xx.h
+++ b/include/configs/TQM85xx.h
@@ -149,7 +149,7 @@
 #define CFG_INIT_SP_OFFSET	CFG_GBL_DATA_OFFSET
 
 #define CFG_MONITOR_LEN		(256 * 1024)	/* Reserve 256kB for Mon*/
-#define CFG_MALLOC_LEN		(128 * 1024)	/* Reserved for malloc	*/
+#define CFG_MALLOC_LEN		(256 * 1024)	/* Reserved for malloc	*/
 
 /* Serial Port */
 #if defined(CONFIG_TQM8560)
@@ -346,8 +346,8 @@
  * Environment
  */
 #define CFG_ENV_IS_IN_FLASH	1
-#define CFG_ENV_ADDR		(CFG_MONITOR_BASE - 0x20000)
-#define CFG_ENV_SECT_SIZE	0x20000 /* 128K(one sector) for env	*/
+#define CFG_ENV_SECT_SIZE	0x40000 /* 256K(one sector (N)) for env	*/
+#define CFG_ENV_ADDR		(CFG_MONITOR_BASE - CFG_ENV_SECT_SIZE)
 #define CFG_ENV_SIZE		0x2000
 #define CFG_ENV_ADDR_REDUND	(CFG_ENV_ADDR-CFG_ENV_SECT_SIZE)
 #define CFG_ENV_SIZE_REDUND	(CFG_ENV_SIZE)

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

end of thread, other threads:[~2007-06-25 15:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-22 11:00 [U-Boot-Users] [PATCH] TQM85xx: add support for Spansion 'N' type flashes Martin Krause
2007-06-22 11:29 ` Stefan Roese
2007-06-22 12:48   ` Martin Krause
  -- strict thread matches above, loose matches on Subject: below --
2007-06-22 13:00 Martin Krause
2007-06-23 19:08 ` Andy Fleming
2007-06-25 15:08   ` Martin Krause

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