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-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=76e8fe4da652b020e08089415c684a365bb5b6a9;p=linux-2.6-omap-h63xx.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 b2a811347b6..a23fec573c0 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