From e8d8e5ee346f2debf48eb263a61e3f55b0a918c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=99=88=E6=81=92=E6=98=8E?= Date: Tue, 10 Apr 2012 18:11:28 +0800 Subject: [PATCH] rk30: vpu_service: final solution of vpu hardware bug --- arch/arm/plat-rk/vpu_service.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/plat-rk/vpu_service.c b/arch/arm/plat-rk/vpu_service.c index 4ee63b967f3e..d59e8819b05c 100644 --- a/arch/arm/plat-rk/vpu_service.c +++ b/arch/arm/plat-rk/vpu_service.c @@ -449,9 +449,10 @@ void reg_copy_to_hw(vpu_reg *reg) case VPU_ENC : { u32 *dst = (u32 *)enc_dev.hwregs; #if defined(CONFIG_ARCH_RK30) - writel_relaxed(0, dec_dev.hwregs + DEC_INTERRUPT_REGISTER); + cru_set_soft_reset(SOFT_RST_CPU_VCODEC, true); cru_set_soft_reset(SOFT_RST_VCODEC_AHB, true); cru_set_soft_reset(SOFT_RST_VCODEC_AHB, false); + cru_set_soft_reset(SOFT_RST_CPU_VCODEC, false); #endif service.reg_codec = reg; -- 2.34.1