From f7768d3345034fd29ebed5c5deb0a00b3756e98d Mon Sep 17 00:00:00 2001 From: Abhijit Kulkarni Date: Thu, 15 Sep 2016 10:01:45 -0700 Subject: [PATCH] msm: mdss: Add support for secure camera Add interface support for secure camera. This change adds the flag for the secure camera buffer in mdss and sde rotator driver interface. CRs-Fixed: 1085143 Change-Id: I3d4c1c7587b367836a151c3c988f58790611acd1 Signed-off-by: Abhijit Kulkarni --- include/uapi/linux/msm_mdp_ext.h | 4 ++++ include/uapi/media/msm_sde_rotator.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/include/uapi/linux/msm_mdp_ext.h b/include/uapi/linux/msm_mdp_ext.h index 811d8b4e1994..59bfa1231cb5 100644 --- a/include/uapi/linux/msm_mdp_ext.h +++ b/include/uapi/linux/msm_mdp_ext.h @@ -96,6 +96,10 @@ LAYER FLAG CONFIGURATION */ #define MDP_LAYER_MULTIRECT_PARALLEL_MODE 0x2000 + +/* Flag indicates that layer is associated with secure camera session */ +#define MDP_LAYER_SECURE_CAMERA_SESSION 0x4000 + /********************************************************************** DESTINATION SCALER FLAG CONFIGURATION **********************************************************************/ diff --git a/include/uapi/media/msm_sde_rotator.h b/include/uapi/media/msm_sde_rotator.h index 4487edf0c854..12976e3f14d7 100644 --- a/include/uapi/media/msm_sde_rotator.h +++ b/include/uapi/media/msm_sde_rotator.h @@ -86,4 +86,10 @@ struct msm_sde_rotator_fence { /* SDE Rotator private control ID's */ #define V4L2_CID_SDE_ROTATOR_SECURE (V4L2_CID_USER_BASE + 0x1000) +/* + * This control Id indicates this context is associated with the + * secure camera + */ +#define V4L2_CID_SDE_ROTATOR_SECURE_CAMERA (V4L2_CID_USER_BASE + 0x2000) + #endif /* __UAPI_MSM_SDE_ROTATOR_H__ */