rk_fiq_debugger: Reset and set uart to loopback mode before init
authorHuibin Hong <huibin.hong@rock-chips.com>
Mon, 26 Sep 2016 08:09:10 +0000 (16:09 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 26 Sep 2016 10:33:23 +0000 (18:33 +0800)
commit087633170d51f3b5307c145c3681968bfedbc8e6
tree9e2cd7e3206c44f18794cd5e5a27a8be3b471d32
parent97ff73ffbcef885e0b74b48088e95340664085db
rk_fiq_debugger: Reset and set uart to loopback mode before init

The uart may be reinitialized when resume, if uart is in busy
state, which would fail to configure the baud rate. So reset
and set uart to loopback mode can make sure uart is in idle
state.

Change-Id: I54d9ac8de1531cd06da8c223583cd2e330178eff
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
drivers/soc/rockchip/rk_fiq_debugger.c