Blackfin: output booting source when booting

Knowing the booting source of the part is useful, especially when the part
can switch dynamically between sources.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger
2009-01-06 06:16:19 -05:00
parent 8df3ce0f49
commit fc68f9f859
2 changed files with 27 additions and 1 deletions

View File

@@ -70,7 +70,11 @@ void *sbrk(ptrdiff_t increment)
static int display_banner(void)
{
printf("\n\n%s\n\n", version_string);
printf("CPU: ADSP " MK_STR(CONFIG_BFIN_CPU) " (Detected Rev: 0.%d)\n", bfin_revid());
printf("CPU: ADSP " MK_STR(CONFIG_BFIN_CPU) " "
"(Detected Rev: 0.%d) "
"(%s boot)\n",
bfin_revid(),
get_bfin_boot_mode(CONFIG_BFIN_BOOT_MODE));
return 0;
}