]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Blackfin: re-use board data in cpu banner
authorMike Frysinger <vapier@gentoo.org>
Mon, 9 Aug 2010 21:39:22 +0000 (17:39 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 11 Aug 2010 15:29:19 +0000 (11:29 -0400)
The bi_cpu field of the board data is already set to the relevant cpu
string, so there is no need for us to use the define directly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/lib/board.c

index 2d3230cd64b8a9ca94a845d52e2d417212272fb5..46e36c8904ce58fb01505130c62d14e3f5fc4009 100644 (file)
@@ -53,9 +53,10 @@ static inline void serial_early_puts(const char *s)
 static int display_banner(void)
 {
        printf("\n\n%s\n\n", version_string);
-       printf("CPU:   ADSP " MK_STR(CONFIG_BFIN_CPU) " "
+       printf("CPU:   ADSP %s "
                "(Detected Rev: 0.%d) "
                "(%s boot)\n",
+               gd->bd->bi_cpu,
                bfin_revid(),
                get_bfin_boot_mode(CONFIG_BFIN_BOOT_MODE));
        return 0;