rockchip: clear the power mode status via M0
Due to the PMU design, the PMU may not clear the WAKEUP bit after
wakeup, therefore, the state machine at the power mode may enter
the infinite loop during WFI.

There is a solution that we can use the M0 to monitor the WAKEUP
bit and clear it during power mode, then the state machine will be
recovered immediately. Then, the DUT can exit the WFI normally.

Change-Id: I303628553b728c214bf2d436bd3122032b5e669c
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
1 parent 8382e17 commit 7ac520067cd35c1f8754e8caa3c128715a56a4c3
@Caesar Wang Caesar Wang authored on 11 Oct 2016
Showing 4 changed files
View
plat/rockchip/common/plat_pm.c
View
plat/rockchip/rk3399/drivers/pmu/pmu.c
View
plat/rockchip/rk3399/drivers/soc/soc.c
View
plat/rockchip/rk3399/drivers/soc/soc.h