X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=board%2Fep7312%2Fflash.c;h=1ef06f861f131cad34ff684c026afcfd24ba8a1f;hb=0e8d158664a913392cb01fb11a948d83f72e105e;hp=373d238ccf1982c634600ebc1a9b7ea64a346298;hpb=c609719b8d1b2dca590e0ed499016d041203e403;p=platform%2Fkernel%2Fu-boot.git diff --git a/board/ep7312/flash.c b/board/ep7312/flash.c index 373d238..1ef06f8 100644 --- a/board/ep7312/flash.c +++ b/board/ep7312/flash.c @@ -50,7 +50,7 @@ ulong flash_init (void) if (i == 0) flashbase = PHYS_FLASH_1; 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++) { flash_info[i].start[j] = flashbase + j * MAIN_SECT_SIZE; } @@ -61,12 +61,12 @@ 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, - CFG_ENV_ADDR, - CFG_ENV_ADDR + CFG_ENV_SIZE - 1, &flash_info[0]); + CONFIG_ENV_ADDR, + CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, &flash_info[0]); return size; } @@ -109,7 +109,7 @@ void flash_print_info (flash_info_t * info) } printf ("\n"); - Done: +Done: ; } /*-----------------------------------------------------------------------