summaryrefslogtreecommitdiff
path: root/include/configs/SM850.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-09-16 18:02:19 +0200
committerWolfgang Denk <wd@denx.de>2008-09-16 18:02:19 +0200
commit7c803be2eb3cae245dedda438776e08fb122250f (patch)
tree579c080c865fe5c4307b47f786024515f573aeeb /include/configs/SM850.h
parentc0d2f87d6c450128b88e73eea715fa3654f65b6c (diff)
downloadu-boot-imx-7c803be2eb3cae245dedda438776e08fb122250f.zip
u-boot-imx-7c803be2eb3cae245dedda438776e08fb122250f.tar.gz
u-boot-imx-7c803be2eb3cae245dedda438776e08fb122250f.tar.bz2
TQM8xx: Fix CFI flash driver support for all TQM8xx based boards
After switching to using the CFI flash driver, the correct remapping of the flash banks was forgotten. Also, some boards were not adapted, and the old legacy flash driver was not removed yet. Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'include/configs/SM850.h')
-rw-r--r--include/configs/SM850.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/include/configs/SM850.h b/include/configs/SM850.h
index d30c7bc..c896b58 100644
--- a/include/configs/SM850.h
+++ b/include/configs/SM850.h
@@ -1,5 +1,5 @@
/*
- * (C) Copyright 2000
+ * (C) Copyright 2000-2008
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* See file CREDITS for list of people who contributed to this
@@ -157,16 +157,21 @@
/*-----------------------------------------------------------------------
* FLASH organization
*/
+/* use CFI flash driver */
+#define CFG_FLASH_CFI 1 /* Flash is CFI conformant */
+#define CONFIG_FLASH_CFI_DRIVER 1 /* Use the common driver */
+#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE, CFG_FLASH_BASE+flash_info[0].size }
+#define CFG_FLASH_EMPTY_INFO
+#define CFG_FLASH_USE_BUFFER_WRITE 1
#define CFG_MAX_FLASH_BANKS 2 /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT 67 /* max number of sectors on one chip */
-
-#define CFG_FLASH_ERASE_TOUT 120000 /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT 500 /* Timeout for Flash Write (in ms) */
+#define CFG_MAX_FLASH_SECT 71 /* max number of sectors on one chip */
#define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_OFFSET 0x8000 /* Offset of Environment Sector */
+#define CONFIG_ENV_OFFSET 0x8000 /* Offset of Environment Sector */
#define CONFIG_ENV_SIZE 0x4000 /* Total Size of Environment Sector */
+#define CONFIG_MISC_INIT_R /* Make sure to remap flashes correctly */
+
/*-----------------------------------------------------------------------
* Hardware Information Block
*/