From d00b8490439fd7cd30021f4e2ffb0377f5dd1dc3 Mon Sep 17 00:00:00 2001 From: Arpita Banerjee Date: Tue, 11 Jun 2013 19:24:20 -0700 Subject: msm: mdss: support enter/exit DCM for calibration This change supports the enter/exit DCM for calibration tool. It blocks the unblank operation if target is in DCM (Display Calibration Mode). Change-Id: If65449b9863bb1f9ca0346d736b6939261d1394e Signed-off-by: Arpita Banerjee --- include/uapi/linux/msm_mdp.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include/uapi') diff --git a/include/uapi/linux/msm_mdp.h b/include/uapi/linux/msm_mdp.h index 2e4cff5db866..168bf154fde4 100644 --- a/include/uapi/linux/msm_mdp.h +++ b/include/uapi/linux/msm_mdp.h @@ -77,6 +77,7 @@ enum { NOTIFY_UPDATE_START, NOTIFY_UPDATE_STOP, + NOTIFY_UPDATE_POWER_OFF, }; enum { @@ -602,6 +603,19 @@ struct mdp_calib_config_buffer { uint32_t *buffer; }; +struct mdp_calib_dcm_state { + uint32_t ops; + uint32_t dcm_state; +}; + +enum { + DCM_UNINIT, + DCM_UNBLANK, + DCM_ENTER, + DCM_EXIT, + DCM_BLANK, +}; + #define MDSS_MAX_BL_BRIGHTNESS 255 #define AD_BL_LIN_LEN (MDSS_MAX_BL_BRIGHTNESS + 1) @@ -694,6 +708,7 @@ enum { mdp_op_ad_input, mdp_op_calib_mode, mdp_op_calib_buffer, + mdp_op_calib_dcm_state, mdp_op_max, }; @@ -723,6 +738,7 @@ struct msmfb_mdp_pp { struct mdss_ad_init_cfg ad_init_cfg; struct mdss_ad_input ad_input; struct mdp_calib_config_buffer calib_buffer; + struct mdp_calib_dcm_state calib_dcm; } data; }; -- cgit v1.2.3