From: Mark Yao Date: Thu, 30 Mar 2017 12:23:53 +0000 (+0800) Subject: video/rockchip: rga2: use axi safe reset X-Git-Tag: firefly_0821_release~174 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e3656e494d8c9c2af801a70c68e39186033a079e;p=firefly-linux-kernel-4.4.55.git video/rockchip: rga2: use axi safe reset RGA2_SYS_CTRL bit[6] a safe reset, it would be ensure all axi write/read operation into completion Change-Id: I39a5a6a9f10883d355c428e9dbaa89778682c49b Signed-off-by: Mark Yao --- diff --git a/drivers/video/rockchip/rga2/rga2_drv.c b/drivers/video/rockchip/rga2/rga2_drv.c index 8b3b176263ee..936411d895cd 100644 --- a/drivers/video/rockchip/rga2/rga2_drv.c +++ b/drivers/video/rockchip/rga2/rga2_drv.c @@ -188,7 +188,7 @@ static void rga2_soft_reset(void) u32 i; u32 reg; - rga2_write((1 << 3) | (1 << 4), RGA2_SYS_CTRL); //RGA_SYS_CTRL + rga2_write((1 << 3) | (1 << 4) | (1 << 6), RGA2_SYS_CTRL); for(i = 0; i < RGA2_RESET_TIMEOUT; i++) {