mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
Blackfin arch: read SYSCR on newer parts that mirror the bits of SWRST in it
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
This commit is contained in:
parent
7f6678c52f
commit
ed1fb6048c
1 changed files with 6 additions and 0 deletions
|
@ -826,7 +826,13 @@ void __init setup_arch(char **cmdline_p)
|
|||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue