]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: rockchip: disable dapswjdp during suspend
authorChris Zhong <zyw@rock-chips.com>
Wed, 15 Apr 2015 05:57:11 +0000 (13:57 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 16 Apr 2015 19:15:47 +0000 (21:15 +0200)
commitfaab50de8a3ebecaa749184af0db7df89f789763
tree736112af9cc549d24725599269dffe3b8545c53d
parent757ae327ed2a4bf324829b2a0daf0a2c1c5683e2
ARM: rockchip: disable dapswjdp during suspend

Reset dapswjdp is controlled by JTAG_TRSTN, if the iomux of this pin is
not "jtag_trstn". the AP would think this pin is always high, so it can
not reset before resume. When system resume, but the dapswjdp is not in
a default state, it may Access some illegal address, it cause system
crash during resume.
Let's disable this jtag function by clear the dapdeviceen bit, it
prohibit the dapswjdp to access memory and registers. This bit would
be enable in MASKROM, so we need clear it in suspend everytime.

Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/mach-rockchip/pm.c
arch/arm/mach-rockchip/pm.h