rockchip: rk3399: fix hang in ddr set rate
authorDerek Basehore <dbasehore@chromium.org>
Fri, 24 Feb 2017 06:33:03 +0000 (14:33 +0800)
committerXing Zheng <zhengxing@rock-chips.com>
Fri, 24 Feb 2017 12:07:44 +0000 (20:07 +0800)
commitc6e15d1437a50a17b17ff852ec6850e21f73d677
tree91962431614528eb408e5a0019d4a9c7a7f9c4e9
parentad84ad49b3cb72346184613db8ef87add65a9e7e
rockchip: rk3399: fix hang in ddr set rate

This fixes a hang with setting the DRAM rate based on a race condition
with the M0 which sets the DRAM rate. The AP can also starve the M0,
so this also delays the AP reads to the DONE parameter for the M0.

Signed-off-by: Derek Basehore <dbasehore@chromium.org>
plat/rockchip/rk3399/drivers/pmu/m0_ctl.c