\r
u8 rgb2yuv_mode;\r
\r
- #if defined(CONFIG_ROCKCHIP_IOMMU) & defined(CONFIG_ION_ROCKCHIP)\r
struct sg_table *sg_src0;\r
struct sg_table *sg_src1;\r
struct sg_table *sg_dst;\r
struct sg_table *sg_els;\r
- #endif\r
};\r
\r
struct rga2_mmu_buf_t {\r
\r
rga2_power_on();\r
udelay(1);\r
- //mdelay(500);\r
\r
rga2_copy_reg(reg, 0);\r
rga2_reg_from_wait_to_run(reg);\r
ion_phys_addr_t phy_addr;\r
size_t len;\r
int ret;\r
+ \r
+ #ifdef CONFIG_RGA_IOMMU\r
req->sg_src0 = NULL;\r
req->sg_src1 = NULL;\r
req->sg_dst = NULL;\r
req->sg_els = NULL;\r
+ #endif\r
\r
if(req->src.yrgb_addr) {\r
hdl = ion_import_dma_buf(rga2_drvdata->ion_client, req->src.yrgb_addr);\r
req->src1.v_addr = req->dst.uv_addr + (req->dst.vir_w * req->dst.vir_h)/4;\r
}\r
#else\r
- ion_phys(rga2_drvdata->ion_client, hdl, &phy_addr, &len);\r
+ ion_phys(rga2_drvdata->ion_client, hdl, &phy_addr, &len);\r
req->src1.yrgb_addr = phy_addr;\r
req->src1.uv_addr = req->dst.yrgb_addr + (req->dst.vir_w * req->dst.vir_h);\r
req->src1.v_addr = req->dst.uv_addr + (req->dst.vir_w * req->dst.vir_h)/4;\r