diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-10-08 02:46:09 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-10-08 02:46:09 -0400 |
commit | fffe53bee7d90ab2103d2520ab4d095aea9b7397 (patch) | |
tree | 56f6bc36b61fb9b618e103b7ebb1f59bedd32b1c /arch | |
parent | 5c64e0d5109532f8184be29c1dc163059e3ded4b (diff) |
Blackfin arch: fix bug - sometimes there is no response to the hitting 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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/blackfin/kernel/reboot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/blackfin/kernel/reboot.c b/arch/blackfin/kernel/reboot.c index 367e2dc09881..b0a8f89cc9b6 100644 --- a/arch/blackfin/kernel/reboot.c +++ b/arch/blackfin/kernel/reboot.c | |||
@@ -34,15 +34,15 @@ void bfin_reset(void) | |||
34 | bfin_write_SWRST(0x7); | 34 | bfin_write_SWRST(0x7); |
35 | 35 | ||
36 | /* Due to the way reset is handled in the hardware, we need | 36 | /* Due to the way reset is handled in the hardware, we need |
37 | * to delay for 7 SCLKS. The only reliable way to do this is | 37 | * to delay for 10 SCLKS. The only reliable way to do this is |
38 | * to calculate the CCLK/SCLK ratio and multiply 7. For now, | 38 | * to calculate the CCLK/SCLK ratio and multiply 10. For now, |
39 | * we'll assume worse case which is a 1:15 ratio. | 39 | * we'll assume worse case which is a 1:15 ratio. |
40 | */ | 40 | */ |
41 | asm( | 41 | asm( |
42 | "LSETUP (1f, 1f) LC0 = %0\n" | 42 | "LSETUP (1f, 1f) LC0 = %0\n" |
43 | "1: nop;" | 43 | "1: nop;" |
44 | : | 44 | : |
45 | : "a" (15 * 7) | 45 | : "a" (15 * 10) |
46 | : "LC0", "LB0", "LT0" | 46 | : "LC0", "LB0", "LT0" |
47 | ); | 47 | ); |
48 | 48 | ||