Title: [6020] trunk/arch/blackfin/kernel/setup.c: read SYSCR on newer parts that mirror the bits of SWRST in it
- Revision
- 6020
- Author
- vapier
- Date
- 2009-01-14 23:11:45 -0600 (Wed, 14 Jan 2009)
Log Message
read SYSCR on newer parts that mirror the bits of SWRST in it
Modified Paths
Diff
Modified: trunk/arch/blackfin/kernel/setup.c (6019 => 6020)
--- trunk/arch/blackfin/kernel/setup.c 2009-01-14 19:54:31 UTC (rev 6019)
+++ trunk/arch/blackfin/kernel/setup.c 2009-01-15 05:11:45 UTC (rev 6020)
@@ -826,7 +826,13 @@
printk(KERN_INFO "Boot Mode: %i\n", bfin_read_SYSCR() & 0xF);
+ /* Newer parts mirror SWRST bits in SYSCR */
+#if defined(CONFIG_BF53x) || defined(CONFIG_BF561) || \
+ defined(CONFIG_BF538) || defined(CONFIG_BF539)
_bfin_swrst = bfin_read_SWRST();
+#else
+ _bfin_swrst = bfin_read_SYSCR();
+#endif
#ifdef CONFIG_DEBUG_DOUBLEFAULT_PRINT
bfin_write_SWRST(_bfin_swrst & ~DOUBLE_FAULT);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits