X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=board%2Fsnmc%2Fqs850%2Fflash.c;h=9e276a104a35ae59b3294f3778dbc694dc4bdaf1;hb=bdf5e20a263d1a8485835c991b4f0a2ecd9fd60f;hp=d2f169b88efcacd89f19dca290b43a3c0f1f5b6b;hpb=335591c27a1224466272d46549159f2ca4eac0c2;p=karo-tx-uboot.git diff --git a/board/snmc/qs850/flash.c b/board/snmc/qs850/flash.c index d2f169b88e..9e276a104a 100755 --- a/board/snmc/qs850/flash.c +++ b/board/snmc/qs850/flash.c @@ -29,7 +29,7 @@ #include #include -flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */ +flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */ #define FLASH_WORD_SIZE unsigned long @@ -57,7 +57,7 @@ unsigned long flash_init (void) volatile FLASH_WORD_SIZE* flash_base; /* Init: no FLASHes known */ - for (i=0; i CFG_FLASH_ERASE_TOUT) { + if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) { printf ("Timeout\n"); return 1; } @@ -607,7 +607,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data) start = get_timer(0); while ((*((vu_long *)dest) & 0x00800080) != (data & 0x00800080)) { - if (get_timer(start) > CFG_FLASH_WRITE_TOUT) { + if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) { return (1); } }