diff options
| author | Markus Klotzbuecher <mk@denx.de> | 2008-10-21 09:18:01 +0200 | 
|---|---|---|
| committer | Markus Klotzbuecher <mk@denx.de> | 2008-10-21 09:18:01 +0200 | 
| commit | 50bd0057ba8fceeb48533f8b1a652ccd0e170838 (patch) | |
| tree | ea1a183343573c2a48248923b96d316c0956727c /board/armadillo/flash.c | |
| parent | 9dbc366744960013965fce8851035b6141f3b3ae (diff) | |
| parent | f82642e33899766892499b163e60560fbbf87773 (diff) | |
| download | olio-uboot-2014.01-50bd0057ba8fceeb48533f8b1a652ccd0e170838.tar.xz olio-uboot-2014.01-50bd0057ba8fceeb48533f8b1a652ccd0e170838.zip | |
Merge git://git.denx.de/u-boot into x1
Conflicts:
	drivers/usb/usb_ohci.c
Diffstat (limited to 'board/armadillo/flash.c')
| -rw-r--r-- | board/armadillo/flash.c | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/board/armadillo/flash.c b/board/armadillo/flash.c index 6ed88f401..cdbbfd01c 100644 --- a/board/armadillo/flash.c +++ b/board/armadillo/flash.c @@ -37,7 +37,7 @@  #define FL_WORD(addr) (*(volatile unsigned short*)(addr))  #define FLASH_TIMEOUT 20000000 -flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; +flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];  /*-----------------------------------------------------------------------   */ @@ -47,14 +47,14 @@ ulong flash_init (void)  	int i, j;  	ulong size = 0; -	for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) { +	for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {  		ulong flashbase = 0;  		flash_info[i].flash_id = (FUJ_MANUFACT & FLASH_VENDMASK);  		/*(INTEL_ID_28F128J3 & FLASH_TYPEMASK); */  		flash_info[i].size = FLASH_BANK_SIZE; -		flash_info[i].sector_count = CFG_MAX_FLASH_SECT; -		memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT); +		flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT; +		memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);  		if (i == 0)  			flashbase = PHYS_FLASH_1;  		else @@ -69,8 +69,8 @@ ulong flash_init (void)  	/* Protect monitor and environment sectors  	 */  	flash_protect (FLAG_PROTECT_SET, -		       CFG_FLASH_BASE, -		       CFG_FLASH_BASE + monitor_flash_len - 1, +		       CONFIG_SYS_FLASH_BASE, +		       CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,  		       &flash_info[0]);  	flash_protect (FLAG_PROTECT_SET, |