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/xsengine/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/xsengine/flash.c')
| -rw-r--r-- | board/xsengine/flash.c | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/board/xsengine/flash.c b/board/xsengine/flash.c index f29def268..736905ad7 100644 --- a/board/xsengine/flash.c +++ b/board/xsengine/flash.c @@ -29,7 +29,7 @@  #define SWAP(x)               __swab32(x) -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 */  /* Functions */  static ulong flash_get_size (vu_long *addr, flash_info_t *info); @@ -43,7 +43,7 @@ unsigned long flash_init (void)  	int i;  	ulong size = 0; -	for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) { +	for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {  		switch (i) {  		case 0:  			flash_get_size ((vu_long *) PHYS_FLASH_1, &flash_info[i]); @@ -61,7 +61,7 @@ unsigned long flash_init (void)  	}  	/* Protect monitor and environment sectors */ -	flash_protect ( FLAG_PROTECT_SET,CFG_FLASH_BASE,CFG_FLASH_BASE + monitor_flash_len - 1,&flash_info[0] ); +	flash_protect ( FLAG_PROTECT_SET,CONFIG_SYS_FLASH_BASE,CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,&flash_info[0] );  	flash_protect ( FLAG_PROTECT_SET,CONFIG_ENV_ADDR,CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, &flash_info[0] );  	return size; @@ -338,7 +338,7 @@ int	flash_erase (flash_info_t *info, int s_first, int s_last)  	last  = start;  	addr = (vu_long*)(info->start[l_sect]);  	while ((addr[0] & 0x00800080) != 0x00800080) { -		if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) { +		if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {  			printf ("Timeout\n");  			return 1;  		} @@ -462,7 +462,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)  	/* data polling for D7 */  	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);  		}  	} |