From: Robin Getz Date: Wed, 4 Feb 2009 08:49:45 +0000 (+0800) Subject: Blackfin arch: Print out where the bootmode is coming from (for easier debugging). X-Git-Tag: 2.1b_release~14153^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76e8fe4da652b020e08089415c684a365bb5b6a9;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git Blackfin arch: Print out where the bootmode is coming from (for easier debugging). Signed-off-by: Robin Getz Signed-off-by: Bryan Wu --- diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c index b2a8113..a23fec5 100644 --- a/arch/blackfin/kernel/setup.c +++ b/arch/blackfin/kernel/setup.c @@ -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