diff options
Diffstat (limited to 'lib_blackfin')
| -rw-r--r-- | lib_blackfin/bf533_linux.c | 7 | ||||
| -rw-r--r-- | lib_blackfin/board.c | 6 | ||||
| -rw-r--r-- | lib_blackfin/post.c | 8 | 
3 files changed, 5 insertions, 16 deletions
| diff --git a/lib_blackfin/bf533_linux.c b/lib_blackfin/bf533_linux.c index 3b9c4df98..80a3dc7d6 100644 --- a/lib_blackfin/bf533_linux.c +++ b/lib_blackfin/bf533_linux.c @@ -36,13 +36,6 @@  #define	LINUX_MAX_ENVS		256  #define	LINUX_MAX_ARGS		256 -#ifdef CONFIG_SHOW_BOOT_PROGRESS -#include <status_led.h> -#define SHOW_BOOT_PROGRESS(arg)	show_boot_progress(arg) -#else -#define SHOW_BOOT_PROGRESS(arg) -#endif -  #define CMD_LINE_ADDR 0xFF900000	/* L1 scratchpad */  #ifdef SHARED_RESOURCES diff --git a/lib_blackfin/board.c b/lib_blackfin/board.c index 1538da3f2..36a969e73 100644 --- a/lib_blackfin/board.c +++ b/lib_blackfin/board.c @@ -297,7 +297,7 @@ void board_init_f(ulong bootflag)  	}  	checkboard(); -#if defined(CONFIG_RTC_BF533) && (CONFIG_COMMANDS & CFG_CMD_DATE) +#if defined(CONFIG_RTC_BF533) && defined(CONFIG_CMD_DATE)  	rtc_init();  #endif  	timer_init(); @@ -391,13 +391,13 @@ void board_init_r(gd_t * id, ulong dest_addr)  	if ((s = getenv("loadaddr")) != NULL) {  		load_addr = simple_strtoul(s, NULL, 16);  	} -#if (CONFIG_COMMANDS & CFG_CMD_NET) +#if defined(CONFIG_CMD_NET)  	if ((s = getenv("bootfile")) != NULL) {  		copy_filename(BootFile, s, sizeof(BootFile));  	}  #endif -#if (CONFIG_COMMANDS & CFG_CMD_NAND) +#if defined(CONFIG_CMD_NAND)  	puts("NAND:  ");  	nand_init();		/* go init the NAND */  #endif diff --git a/lib_blackfin/post.c b/lib_blackfin/post.c index 0e76026ad..7c9478def 100644 --- a/lib_blackfin/post.c +++ b/lib_blackfin/post.c @@ -132,9 +132,7 @@ void post_output_backlog(void)  				post_log("PASSED\n");  			else {  				post_log("FAILED\n"); -#ifdef CONFIG_SHOW_BOOT_PROGRESS -				show_boot_progress(-31); -#endif +				show_boot_progress (-31);  			}  		}  	} @@ -245,9 +243,7 @@ static int post_run_single(struct post_test *test,  		} else {  			if ((*test->test) (flags) != 0) {  				post_log("FAILED\n"); -#ifdef CONFIG_SHOW_BOOT_PROGRESS -				show_boot_progress(-32); -#endif +				show_boot_progress (-32);  			} else  				post_log("PASSED\n");  		} |