summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorXu Yang <yangxu@codeaurora.org>2017-02-15 09:29:27 +0800
committerXu Yang <yangxu@codeaurora.org>2017-03-07 14:36:54 +0800
commit6baec9abc01da5df562b1038819c4165a33360c8 (patch)
tree1630a5c8cabf45d1f47cb59356308d62561b0122 /include/uapi/linux
parent2a7bbea49bd05426d54b3392ac780a93490c6542 (diff)
msm: mdss: Add support to update backlight when display commit
1. Add support to update backlight when display commit. Backlight level is sent from userspace. And sync to set PP config, kickoff, and set backlight in the same vsync period. 2. Add support to get current backlight level through sysfs node. Change-Id: Icf264299ecf8edd3831938745a471c2655c23542 Signed-off-by: Xu Yang <yangxu@codeaurora.org>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/msm_mdp_ext.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/uapi/linux/msm_mdp_ext.h b/include/uapi/linux/msm_mdp_ext.h
index ee68675bfe13..35029f227f8b 100644
--- a/include/uapi/linux/msm_mdp_ext.h
+++ b/include/uapi/linux/msm_mdp_ext.h
@@ -40,9 +40,9 @@
* To allow proper structure padding for 64bit/32bit target
*/
#ifdef __LP64
-#define MDP_LAYER_COMMIT_V1_PAD 3
+#define MDP_LAYER_COMMIT_V1_PAD 2
#else
-#define MDP_LAYER_COMMIT_V1_PAD 4
+#define MDP_LAYER_COMMIT_V1_PAD 3
#endif
/**********************************************************************
@@ -166,6 +166,9 @@ VALIDATE/COMMIT FLAG CONFIGURATION
/* Flag to indicate dual partial ROI update */
#define MDP_COMMIT_PARTIAL_UPDATE_DUAL_ROI 0x20
+/* Flag to update brightness when commit */
+#define MDP_COMMIT_UPDATE_BRIGHTNESS 0x40
+
/* Flag to enable concurrent writeback for the frame */
#define MDP_COMMIT_CWB_EN 0x800
@@ -568,6 +571,9 @@ struct mdp_layer_commit_v1 {
*/
uint32_t dest_scaler_cnt;
+ /* Backlight level that would update when display commit */
+ uint32_t bl_level;
+
/* 32-bits reserved value for future usage. */
uint32_t reserved[MDP_LAYER_COMMIT_V1_PAD];
};