Skip to content

Commit

Permalink
Blackfin: bf526: restrict reboot workaround to 0.0 silicon
Browse files Browse the repository at this point in the history
The bug in the BF526 rom when doing a software reset exists only in older
silicon versions, so don't clear SWRST on newer parts.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  • Loading branch information
Mike Frysinger committed Jul 23, 2011
1 parent 65cd3b5 commit b0d3dc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/blackfin/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ static void bfin_reset(void)

/* The BF526 ROM will crash during reset */
#if defined(__ADSPBF522__) || defined(__ADSPBF524__) || defined(__ADSPBF526__)
bfin_read_SWRST();
/* Seems to be fixed with newer parts though ... */
if (__SILICON_REVISION__ < 1 && bfin_revid() < 1)
bfin_read_SWRST();
#endif

/* Wait for the SWRST write to complete. Cannot rely on SSYNC
Expand Down

0 comments on commit b0d3dc1

Please sign in to comment.