* (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
- * Flash Routines for STM29W320DB flash chips
+ * Flash Routines for STM29W320DB/STM29W800D flash chips
*
*--------------------------------------------------------------------
* See file CREDITS for list of people who contributed to this
flash_get_size((vu_char *)(-size), &flash_info[0]);
}
-#if (CFG_MONITOR_BASE >= CFG_FLASH0_BASE) || \
- (CFG_MONITOR_BASE >= CFG_FLASH1_BASE)
+#if (CFG_MONITOR_BASE >= CFG_FLASH_PRELIMBASE)
/* monitor protection ON by default */
flash_protect(FLAG_PROTECT_SET,
CFG_MONITOR_BASE,
* FLASH
*/
-#define CFG_FLASH0_BASE 0xFFF00000
-#define CFG_FLASH1_BASE 0xFFE00000
-#define CFG_FLASH_BASE (0-flash_info[0].size)
#define CFG_FLASH_PRELIMBASE 0xFF800000
+#define CFG_FLASH_BASE (0-flash_info[0].size)
#define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */
#define CFG_MAX_FLASH_SECT 32 /* max number of sectors on one chip */
#define CFG_MONITOR_BASE TEXT_BASE
#define CFG_MONITOR_LEN 0x00030000
-#if (CFG_MONITOR_BASE < CFG_FLASH0_BASE) && \
- (CFG_MONITOR_BASE < CFG_FLASH1_BASE)
+#if (CFG_MONITOR_BASE < CFG_FLASH_PRELIMBASE)
# define CFG_RAMBOOT 1
#else
# undef CFG_RAMBOOT