Skip to content

Commit

Permalink
Blackfin arch: fix bug - sometimes there is no response to the hittin…
Browse files Browse the repository at this point in the history
…g key in uboot for bf561-ezkit when running with 50mhz SCLK

use 10 delays rather than 7

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Oct 8, 2008
1 parent 5c64e0d commit fffe53b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/blackfin/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ void bfin_reset(void)
bfin_write_SWRST(0x7);

/* Due to the way reset is handled in the hardware, we need
* to delay for 7 SCLKS. The only reliable way to do this is
* to calculate the CCLK/SCLK ratio and multiply 7. For now,
* to delay for 10 SCLKS. The only reliable way to do this is
* to calculate the CCLK/SCLK ratio and multiply 10. For now,
* we'll assume worse case which is a 1:15 ratio.
*/
asm(
"LSETUP (1f, 1f) LC0 = %0\n"
"1: nop;"
:
: "a" (15 * 7)
: "a" (15 * 10)
: "LC0", "LB0", "LT0"
);

Expand Down

0 comments on commit fffe53b

Please sign in to comment.