diff options
author | Marian Balakowicz <m8@semihalf.com> | 2005-10-11 19:09:42 +0200 |
---|---|---|
committer | Marian Balakowicz <m8@semihalf.com> | 2005-10-11 19:09:42 +0200 |
commit | e6f2e902334d5ee65bab9cf8292cf668243531e9 (patch) | |
tree | 9ee0039daaa8161bc282f1af8d3827a5071acbc7 /common/cmd_bootm.c | |
parent | 3df5bea0b0bddc196bf952c51d1dd54d966b82ba (diff) | |
download | u-boot-imx-e6f2e902334d5ee65bab9cf8292cf668243531e9.zip u-boot-imx-e6f2e902334d5ee65bab9cf8292cf668243531e9.tar.gz u-boot-imx-e6f2e902334d5ee65bab9cf8292cf668243531e9.tar.bz2 |
Added support for TQM834x boards.
Diffstat (limited to 'common/cmd_bootm.c')
-rw-r--r-- | common/cmd_bootm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index ab6ccbb..6a5576c 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -84,7 +84,7 @@ static int image_info (unsigned long addr); #if (CONFIG_COMMANDS & CFG_CMD_IMLS) #include <flash.h> -extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */ +extern flash_info_t flash_info[]; /* info for FLASH chips */ static int do_imls (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]); #endif @@ -1082,7 +1082,7 @@ int do_imls (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) for (i=0, info=&flash_info[0]; i<CFG_MAX_FLASH_BANKS; ++i, ++info) { if (info->flash_id == FLASH_UNKNOWN) goto next_bank; - for (j=0; j<CFG_MAX_FLASH_SECT; ++j) { + for (j=0; j<info->sector_count; ++j) { if (!(hdr=(image_header_t *)info->start[j]) || (ntohl(hdr->ih_magic) != IH_MAGIC)) |