• Chris Zhong's avatar
    ARM: rockchip: disable dapswjdp during suspend · 0ea001d3
    Chris Zhong authored
    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: default avatarChris Zhong <zyw@rock-chips.com>
    Reviewed-by: default avatarDoug Anderson <dianders@chromium.org>
    Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
    0ea001d3
pm.h 3.09 KB