summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorRamkumar Radhakrishnan <ramkumar@codeaurora.org>2016-07-13 14:56:31 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-07-29 11:14:55 -0700
commit3d764869b9039dcf51a0dc1496cd91583880f512 (patch)
tree764b34c38f173262209e6746956c780d89b42df1 /include/uapi/linux
parent956d9b1ab3db6c7fef95964f7f6be8860433b74e (diff)
msm: mdss: add support for adaptive variable refresh feature
Adaptive variable refresh(AVR) allows timing modification of a current frame by extending the vertical front porch values. This helps shifting the vsync to slowest vsync interval supported by panel when GPU rendering ready event is delayed. Define an interface for AVR to enable client to control AVR settings. Validate client input for AVR and configure the corresponding AVR registers. CRs-Fixed: 1043819 Change-Id: I28f786bf0bdea4ecaa17270974ba6d7ffe469828 Signed-off-by: Ramkumar Radhakrishnan <ramkumar@codeaurora.org>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/msm_mdp_ext.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/uapi/linux/msm_mdp_ext.h b/include/uapi/linux/msm_mdp_ext.h
index 8472224f33a6..811d8b4e1994 100644
--- a/include/uapi/linux/msm_mdp_ext.h
+++ b/include/uapi/linux/msm_mdp_ext.h
@@ -138,6 +138,15 @@ VALIDATE/COMMIT FLAG CONFIGURATION
*/
#define MDP_COMMIT_SYNC_FENCE_WAIT 0x04
+/* Flag to enable AVR(Adaptive variable refresh) feature. */
+#define MDP_COMMIT_AVR_EN 0x08
+
+/*
+ * Flag to select one shot mode when AVR feature is enabled.
+ * Default mode is continuous mode.
+ */
+#define MDP_COMMIT_AVR_ONE_SHOT_MODE 0x10
+
/* Flag to enable concurrent writeback for the frame */
#define MDP_COMMIT_CWB_EN 0x800