Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b346692 authored by Lakshmi Narayana Kalavala's avatar Lakshmi Narayana Kalavala
Browse files

msm: camera: Support for secure camera on 8994



Add support for the secure context bank in vfe46 driver

Change-Id: I160f7773cd35e6565b52aeae029e90e8d8592636
Signed-off-by: default avatarLakshmi Narayana Kalavala <lkalaval@codeaurora.org>
parent 53a5295c
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1616,6 +1616,14 @@ static int msm_vfe46_get_platform_data(struct vfe_device *vfe_dev)
		rc = -ENODEV;
		goto vfe_no_resource;
	}
	if (vfe_dev->hw_info->num_iommu_secure_ctx) {
		vfe_dev->iommu_secure_ctx[0] = msm_iommu_get_ctx("vfe_secure");
		if (!vfe_dev->iommu_secure_ctx[0]) {
			pr_err("%s: cannot get secure iommu_ctx\n", __func__);
			rc = -ENODEV;
			goto vfe_no_resource;
		}
	}

vfe_no_resource:
	return rc;
@@ -1698,6 +1706,7 @@ static struct v4l2_subdev_internal_ops msm_vfe46_internal_ops = {

struct msm_vfe_hardware_info vfe46_hw_info = {
	.num_iommu_ctx = 1,
	.num_iommu_secure_ctx = 1,
	.vfe_clk_idx = VFE46_CLK_IDX,
	.vfe_ops = {
		.irq_ops = {