summaryrefslogtreecommitdiff
path: root/common/cmd_flash.c
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2005-10-11 19:09:42 +0200
committerMarian Balakowicz <m8@semihalf.com>2005-10-11 19:09:42 +0200
commite6f2e902334d5ee65bab9cf8292cf668243531e9 (patch)
tree9ee0039daaa8161bc282f1af8d3827a5071acbc7 /common/cmd_flash.c
parent3df5bea0b0bddc196bf952c51d1dd54d966b82ba (diff)
Added support for TQM834x boards.
Diffstat (limited to 'common/cmd_flash.c')
-rw-r--r--common/cmd_flash.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/cmd_flash.c b/common/cmd_flash.c
index d5be30c54dd..0aa478306b8 100644
--- a/common/cmd_flash.c
+++ b/common/cmd_flash.c
@@ -404,7 +404,11 @@ int flash_sect_erase (ulong addr_first, ulong addr_last)
{
flash_info_t *info;
ulong bank;
+#ifdef CFG_MAX_FLASH_BANKS_DETECT
+ int s_first[CFG_MAX_FLASH_BANKS_DETECT], s_last[CFG_MAX_FLASH_BANKS_DETECT];
+#else
int s_first[CFG_MAX_FLASH_BANKS], s_last[CFG_MAX_FLASH_BANKS];
+#endif
int erased = 0;
int planned;
int rcode = 0;
@@ -617,7 +621,11 @@ int flash_sect_protect (int p, ulong addr_first, ulong addr_last)
{
flash_info_t *info;
ulong bank;
+#ifdef CFG_MAX_FLASH_BANKS_DETECT
+ int s_first[CFG_MAX_FLASH_BANKS_DETECT], s_last[CFG_MAX_FLASH_BANKS_DETECT];
+#else
int s_first[CFG_MAX_FLASH_BANKS], s_last[CFG_MAX_FLASH_BANKS];
+#endif
int protected, i;
int planned;
int rcode;