From f7ce12cb65a30c6e152eecf26f0304b7d78cf39d Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 18 Feb 2008 05:26:48 -0500 Subject: Blackfin: convert BFIN_CPU to CONFIG_BFIN_CPU Stop tying things to the processor that should be tied to other defines and change BFIN_CPU to CONFIG_BFIN_CPU so that it can be used in the build system to select the -mcpu option. Signed-off-by: Mike Frysinger --- lib_blackfin/board.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib_blackfin') diff --git a/lib_blackfin/board.c b/lib_blackfin/board.c index 86a3b67..2a5a2fc 100644 --- a/lib_blackfin/board.c +++ b/lib_blackfin/board.c @@ -116,6 +116,7 @@ static int display_banner(void) { sprintf(version_string, VERSION_STRING_FORMAT, VERSION_STRING); printf("%s\n", version_string); + printf("CPU: ADSP " MK_STR(CONFIG_BFIN_CPU) " (Detected Rev: 0.%d)\n", bfin_revid()); return (0); } @@ -404,7 +405,7 @@ void board_init_r(gd_t * id, ulong dest_addr) misc_init_r(); #endif -#if ((BFIN_CPU == ADSP_BF537) || (BFIN_CPU == ADSP_BF536)) +#ifdef CONFIG_CMD_NET printf("Net: "); eth_initialize(bd); #endif -- cgit v1.1