Skip to content

Commit

Permalink
[Blackfin] arch: Fix BUG - kernel sometimes would stuck with KEYBOARD…
Browse files Browse the repository at this point in the history
…_GPIO on

Make sure the SYSTEM reset completes before we issue the CORE reset

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
  • Loading branch information
Michael Hennerich authored and Bryan Wu committed Dec 24, 2007
1 parent 7cc1c4b commit a546b0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/blackfin/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ void bfin_reset(void)
while (1) {
/* initiate system soft reset with magic 0x7 */
bfin_write_SWRST(0x7);
bfin_read_SWRST();
asm("ssync;");
/* clear system soft reset */
bfin_write_SWRST(0);
bfin_read_SWRST();
asm("ssync;");
/* issue core reset */
asm("raise 1");
Expand Down

0 comments on commit a546b0a

Please sign in to comment.