Skip to content

Commit

Permalink
Blackfin arch: Print out where the bootmode is coming from (for easie…
Browse files Browse the repository at this point in the history
…r debugging).

Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
  • Loading branch information
Robin Getz authored and Bryan Wu committed Feb 4, 2009
1 parent a2be393 commit 76e8fe4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/blackfin/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,8 @@ void __init setup_arch(char **cmdline_p)
flash_probe();
#endif

printk(KERN_INFO "Boot Mode: %i\n", bfin_read_SYSCR() & 0xF);

_bfin_swrst = bfin_read_SWRST();

#ifdef CONFIG_DEBUG_DOUBLEFAULT_PRINT
Expand Down

0 comments on commit 76e8fe4

Please sign in to comment.