Skip to content

Commit

Permalink
Blackfin arch: read SYSCR on newer parts that mirror the bits of SWRS…
Browse files Browse the repository at this point in the history
…T in it

Signed-off-by: Mike Frysinger <[email protected]>
Signed-off-by: Bryan Wu <[email protected]>
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Feb 4, 2009
1 parent 7f6678c commit ed1fb60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/blackfin/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ed1fb60

Please sign in to comment.