OSDN Git Service

[Blackfin] arch: Prevent potential Core Hang situation
authorMichael Hennerich <michael.hennerich@analog.com>
Wed, 23 Apr 2008 23:32:41 +0000 (07:32 +0800)
committerBryan Wu <cooloney@kernel.org>
Wed, 23 Apr 2008 23:32:41 +0000 (07:32 +0800)
commita81501af19830ff43688781edad7e9c0cbd668af
tree856be99eb74bfc5e6cf20369b633107d8d4170f6
parent4bea8b20fded93871c872bb4a0d7c23345318184
[Blackfin] arch: Prevent potential Core Hang situation

If the new value written to the PLL_CTL or VR_CTL register is the
same as the previous value, the PLL wake-up will occur immediately
(PLL is already locked), but the core and system clock will be
bypassed for the PLL_LOCKCNT duration. For this interval, code will
execute at the CLKIN rate instead of at the expected CCLK rate.
Software should guard against this condition by comparing the
current value to the new value before writing the new value.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
include/asm-blackfin/mach-bf527/cdefBF52x_base.h
include/asm-blackfin/mach-bf533/cdefBF532.h
include/asm-blackfin/mach-bf537/cdefBF534.h
include/asm-blackfin/mach-bf548/cdefBF54x_base.h
include/asm-blackfin/mach-bf561/cdefBF561.h