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 /common/cmd_mem.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 'common/cmd_mem.c')
| -rw-r--r-- | common/cmd_mem.c | 18 | 
1 files changed, 9 insertions, 9 deletions
| diff --git a/common/cmd_mem.c b/common/cmd_mem.c index 07b08fb05..d7666c2f3 100644 --- a/common/cmd_mem.c +++ b/common/cmd_mem.c @@ -383,7 +383,7 @@ int do_mem_cp ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  		return 1;  	} -#ifndef CFG_NO_FLASH +#ifndef CONFIG_SYS_NO_FLASH  	/* check if we are copying to Flash */  	if ( (addr2info(dest) != NULL)  #ifdef CONFIG_HAS_DATAFLASH @@ -463,7 +463,7 @@ int do_mem_cp ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  	/* Check if we are copying from DataFlash to RAM */  	if (addr_dataflash(addr) && !addr_dataflash(dest) -#ifndef CFG_NO_FLASH +#ifndef CONFIG_SYS_NO_FLASH  				 && (addr2info(dest) == NULL)  #endif  	   ){ @@ -663,7 +663,7 @@ int do_mem_loopw (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  /*   * Perform a memory test. A more complete alternative test can be - * configured using CFG_ALT_MEMTEST. The complete test loops until + * configured using CONFIG_SYS_ALT_MEMTEST. The complete test loops until   * interrupted by ctrl-c or by a failure of one of the sub-tests.   */  int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) @@ -673,7 +673,7 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  	ulong	readback;  	int     rcode = 0; -#if defined(CFG_ALT_MEMTEST) +#if defined(CONFIG_SYS_ALT_MEMTEST)  	vu_long	len;  	vu_long	offset;  	vu_long	test_offset; @@ -681,8 +681,8 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  	vu_long	temp;  	vu_long	anti_pattern;  	vu_long	num_words; -#if defined(CFG_MEMTEST_SCRATCH) -	vu_long *dummy = (vu_long*)CFG_MEMTEST_SCRATCH; +#if defined(CONFIG_SYS_MEMTEST_SCRATCH) +	vu_long *dummy = (vu_long*)CONFIG_SYS_MEMTEST_SCRATCH;  #else  	vu_long *dummy = 0;	/* yes, this is address 0x0, not NULL */  #endif @@ -707,13 +707,13 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  	if (argc > 1) {  		start = (ulong *)simple_strtoul(argv[1], NULL, 16);  	} else { -		start = (ulong *)CFG_MEMTEST_START; +		start = (ulong *)CONFIG_SYS_MEMTEST_START;  	}  	if (argc > 2) {  		end = (ulong *)simple_strtoul(argv[2], NULL, 16);  	} else { -		end = (ulong *)(CFG_MEMTEST_END); +		end = (ulong *)(CONFIG_SYS_MEMTEST_END);  	}  	if (argc > 3) { @@ -722,7 +722,7 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  		pattern = 0;  	} -#if defined(CFG_ALT_MEMTEST) +#if defined(CONFIG_SYS_ALT_MEMTEST)  	printf ("Testing %08x ... %08x:\n", (uint)start, (uint)end);  	PRINTF("%s:%d: start 0x%p end 0x%p\n",  		__FUNCTION__, __LINE__, start, end); |