From 4145485cccd14558c339b0f75e40cd122cba79ec Mon Sep 17 00:00:00 2001 From: ljf Date: Thu, 28 Aug 2014 16:46:01 +0800 Subject: [PATCH] rk312x: vpu select vdpu clk by default --- arch/arm/mach-rockchip/vcodec_service.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-rockchip/vcodec_service.c b/arch/arm/mach-rockchip/vcodec_service.c index addb32762318..c3c731f7caaf 100755 --- a/arch/arm/mach-rockchip/vcodec_service.c +++ b/arch/arm/mach-rockchip/vcodec_service.c @@ -725,6 +725,12 @@ static void vpu_service_power_on(struct vpu_service_info *pservice) (BIT_VCODEC_SEL) | (BIT_VCODEC_SEL << 16), RK319X_GRF_BASE + GRF_SOC_CON1); #endif +#define BIT_VCODEC_CLK_SEL (1<<10) + if (cpu_is_rk312x()) + writel_relaxed(readl_relaxed(RK_GRF_VIRT + RK312X_GRF_SOC_CON1) | + BIT_VCODEC_CLK_SEL | (BIT_VCODEC_CLK_SEL << 16), + RK_GRF_VIRT + RK312X_GRF_SOC_CON1); + udelay(10); wake_lock(&pservice->wake_lock); -- 2.34.1