]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Blackfin arch: Print out where the bootmode is coming from (for easier debugging).
authorRobin Getz <rgetz@blackfin.uclinux.org>
Wed, 4 Feb 2009 08:49:45 +0000 (16:49 +0800)
committerBryan Wu <cooloney@kernel.org>
Wed, 4 Feb 2009 08:49:45 +0000 (16:49 +0800)
Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/kernel/setup.c

index b2a811347b655070472857cac98e6f782c692a78..a23fec573c0a241fa51e5bf38e35183dd72c2d38 100644 (file)
@@ -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