rk30: vpu_service: use part module reset to replace whole vpu reset
author陈恒明 <chm@rock-chips.com>
Tue, 10 Apr 2012 08:36:15 +0000 (16:36 +0800)
committer陈恒明 <chm@rock-chips.com>
Tue, 10 Apr 2012 08:36:15 +0000 (16:36 +0800)
arch/arm/plat-rk/vpu_service.c

index 1c03b106593ec8717c9bcaa1a3d78ec76690d9cb..4ee63b967f3e73a075b25ed72892bd0c76df5ad8 100644 (file)
@@ -449,7 +449,9 @@ void reg_copy_to_hw(vpu_reg *reg)
        case VPU_ENC : {
                u32 *dst = (u32 *)enc_dev.hwregs;
 #if defined(CONFIG_ARCH_RK30)
-               vpu_reset();
+               writel_relaxed(0, dec_dev.hwregs + DEC_INTERRUPT_REGISTER);
+               cru_set_soft_reset(SOFT_RST_VCODEC_AHB, true);
+               cru_set_soft_reset(SOFT_RST_VCODEC_AHB, false);
 #endif
                service.reg_codec = reg;