From: Brian Zhu Date: Sat, 3 Feb 2018 08:21:23 +0000 (+0800) Subject: rdma: enable rdma mem_PD g12a X-Git-Tag: khadas-vims-v0.9.6-release~2472 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d4aa52c76a256e9397b6da36a1ec3981193c245;p=platform%2Fkernel%2Flinux-amlogic.git rdma: enable rdma mem_PD g12a PD#156734: rdma: enable rdma mem_PD g12a Change-Id: I3e2f74b524f07372a54a172d7d05b5a55c8f01df Signed-off-by: Brian Zhu --- diff --git a/drivers/amlogic/media/common/rdma/rdma_mgr.c b/drivers/amlogic/media/common/rdma/rdma_mgr.c index 7f5a68d..e965ce0 100644 --- a/drivers/amlogic/media/common/rdma/rdma_mgr.c +++ b/drivers/amlogic/media/common/rdma/rdma_mgr.c @@ -39,6 +39,7 @@ #include #include +#include #include "rdma.h" #define DRIVER_NAME "amlogic-rdma" @@ -772,6 +773,8 @@ static int rdma_probe(struct platform_device *pdev) pr_info("%s\n", __func__); + switch_vpu_mem_pd_vmod(VPU_RDMA, VPU_MEM_POWER_ON); + WRITE_VCBUS_REG(VPU_VDISP_ASYNC_HOLD_CTRL, 0x18101810); WRITE_VCBUS_REG(VPU_VPUARB2_ASYNC_HOLD_CTRL, 0x18101810); @@ -826,7 +829,7 @@ static int rdma_probe(struct platform_device *pdev) static int rdma_remove(struct platform_device *pdev) { pr_error("RDMA driver removed.\n"); - + switch_vpu_mem_pd_vmod(VPU_RDMA, VPU_MEM_POWER_DOWN); return 0; }