Commit ed1fb604 authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu
Browse files

Blackfin arch: read SYSCR on newer parts that mirror the bits of SWRST in it

Signed-off-by: default avatarMike Frysinger <>
Signed-off-by: default avatarBryan Wu <>
parent 7f6678c5
......@@ -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();
_bfin_swrst = bfin_read_SYSCR();
bfin_write_SWRST(_bfin_swrst & ~DOUBLE_FAULT);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment