diff options
| author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2008-10-16 15:01:15 +0200 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2008-10-18 21:54:03 +0200 | 
| commit | 6d0f6bcf337c5261c08fabe12982178c2c489d76 (patch) | |
| tree | ae13958ffa9c6b58c2ea97aac07a4ad2f04a350f /board/ip860/flash.c | |
| parent | 71edc271816ec82cf0550dd6980be2da3cc2ad9e (diff) | |
| download | olio-uboot-2014.01-6d0f6bcf337c5261c08fabe12982178c2c489d76.tar.xz olio-uboot-2014.01-6d0f6bcf337c5261c08fabe12982178c2c489d76.zip | |
rename CFG_ macros to CONFIG_SYS
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'board/ip860/flash.c')
| -rw-r--r-- | board/ip860/flash.c | 26 | 
1 files changed, 13 insertions, 13 deletions
| diff --git a/board/ip860/flash.c b/board/ip860/flash.c index 10a96c58f..6491af2ff 100644 --- a/board/ip860/flash.c +++ b/board/ip860/flash.c @@ -24,11 +24,11 @@  #include <common.h>  #include <mpc8xx.h> -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	*/  #if defined(CONFIG_ENV_IS_IN_FLASH)  # ifndef  CONFIG_ENV_ADDR -#  define CONFIG_ENV_ADDR	(CFG_FLASH_BASE + CONFIG_ENV_OFFSET) +#  define CONFIG_ENV_ADDR	(CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)  # endif  # ifndef  CONFIG_ENV_SIZE  #  define CONFIG_ENV_SIZE	CONFIG_ENV_SECT_SIZE @@ -50,7 +50,7 @@ static void flash_get_offsets (ulong base, flash_info_t *info);  unsigned long flash_init (void)  { -	volatile immap_t	*immap  = (immap_t *)CFG_IMMR; +	volatile immap_t	*immap  = (immap_t *)CONFIG_SYS_IMMR;  	volatile memctl8xx_t	*memctl = &immap->im_memctl;  	volatile ip860_bcsr_t	*bcsr   = (ip860_bcsr_t *)BCSR_BASE;  	unsigned long size; @@ -61,7 +61,7 @@ unsigned long flash_init (void)  	 */  	bcsr->bd_ctrl |= BD_CTRL_FLWE; -	for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) { +	for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {  		flash_info[i].flash_id = FLASH_UNKNOWN;  	} @@ -75,22 +75,22 @@ unsigned long flash_init (void)  	}  	/* Remap FLASH according to real size */ -	memctl->memc_or1 = CFG_OR_TIMING_FLASH | (-size & 0xFFFF8000); -	memctl->memc_br1 = (CFG_FLASH_BASE & BR_BA_MSK) | +	memctl->memc_or1 = CONFIG_SYS_OR_TIMING_FLASH | (-size & 0xFFFF8000); +	memctl->memc_br1 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) |  				(memctl->memc_br1 & ~(BR_BA_MSK));  	/* Re-do sizing to get full correct info */ -	size = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]); +	size = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]); -	flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]); +	flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);  	flash_info[0].size = size; -#if CFG_MONITOR_BASE >= CFG_FLASH_BASE +#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE  	/* monitor protection ON by default */  	flash_protect(FLAG_PROTECT_SET, -		      CFG_MONITOR_BASE, -		      CFG_MONITOR_BASE+monitor_flash_len-1, +		      CONFIG_SYS_MONITOR_BASE, +		      CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,  		      &flash_info[0]);  #endif @@ -309,7 +309,7 @@ int	flash_erase (flash_info_t *info, int s_first, int s_last)  			udelay (1000);  			while ((*addr & 0x00800080) != 0x00800080) { -				if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) { +				if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {  					printf ("Timeout\n");  					*addr = 0xFFFFFFFF;	/* reset bank */  					return 1; @@ -434,7 +434,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)  	start = get_timer (0);  	flag  = 0;  	while (((csr = *addr) & 0x00800080) != 0x00800080) { -		if (get_timer(start) > CFG_FLASH_WRITE_TOUT) { +		if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {  			flag = 1;  			break;  		} |