X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fimpa7%2Fflash.c;h=3e380e5f498afb96d277aa6e967e4ba157d11826;hb=cf56e1101957c09cb4aafcf28a89658c4649c511;hp=c59ffb86584b72143c5df707beed897b5d47bab9;hpb=c609719b8d1b2dca590e0ed499016d041203e403;p=u-boot diff --git a/board/impa7/flash.c b/board/impa7/flash.c index c59ffb8658..3e380e5f49 100644 --- a/board/impa7/flash.c +++ b/board/impa7/flash.c @@ -53,7 +53,7 @@ ulong flash_init(void) else if (i == 1) flashbase = PHYS_FLASH_2; else - panic("configured to many flash banks!\n"); + panic("configured too many flash banks!\n"); for (j = 0; j < flash_info[i].sector_count; j++) { if (j <= 7) @@ -72,7 +72,7 @@ ulong flash_init(void) */ flash_protect(FLAG_PROTECT_SET, CFG_FLASH_BASE, - CFG_FLASH_BASE + _armboot_end_data - _armboot_start, + CFG_FLASH_BASE + monitor_flash_len - 1, &flash_info[0]); flash_protect(FLAG_PROTECT_SET, @@ -221,7 +221,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data) /* Check if Flash is (sufficiently) erased */ if ((*addr & data) != data) - return ERR_NOT_ERASED; + return ERR_NOT_ERASED; /* * Disable interrupts which might cause a timeout