summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorDavide Garberi <dade.garberi@gmail.com>2018-10-19 21:03:11 +0200
committerDavide Garberi <dade.garberi@gmail.com>2022-07-27 18:59:13 +0200
commitc5803a237da7a455b3e1b9def49b7763594400f3 (patch)
tree33bdbd3ea3b5583ceaa6d2879e04a640e8315cdc /include/uapi/linux
parent3c807c558b18a06f0cf2c34b04eae299bce9ee6d (diff)
mdss: fbdev: Import Zuk z2 row drivers changes
* This is needed to make the display turn on after turning it off * All of this isn't needed at all on z2_plus Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/msm_mdp.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/include/uapi/linux/msm_mdp.h b/include/uapi/linux/msm_mdp.h
index 481814cb8498..e0aee17411d3 100644
--- a/include/uapi/linux/msm_mdp.h
+++ b/include/uapi/linux/msm_mdp.h
@@ -1315,6 +1315,49 @@ struct msmfb_metadata {
int fbmem_ionfd;
} data;
};
+#ifdef CONFIG_MACH_ZUK_Z2_ROW
+#define EFFECT_COUNT 16
+#define MODE_COUNT 8
+#define NAME_SIZE 16
+
+typedef enum {
+ GET_EFFECT_NUM = 1,
+ GET_EFFECT_LEVEL,
+ GET_EFFECT,
+ GET_MODE_NUM,
+ GET_MODE,
+ SET_EFFECT,
+ SET_MODE,
+ SET_BL_LEVEL,
+ GET_BL_LEVEL,
+} ctrl_id;
+
+struct hal_lcd_effect {
+ char name[NAME_SIZE];
+ int max_level;
+ int level;
+};
+
+struct hal_lcd_mode {
+ char name[NAME_SIZE];
+};
+
+struct hal_panel_data {
+ struct hal_lcd_effect effect[EFFECT_COUNT];
+ struct hal_lcd_mode mode[MODE_COUNT];
+ int effect_cnt;
+ int mode_cnt;
+ int current_mode;
+};
+
+struct hal_panel_ctrl_data {
+ struct hal_panel_data panel_data;
+ int level;
+ int mode;
+ int index;
+ ctrl_id id;
+};
+#endif
#define MDP_MAX_FENCE_FD 32
#define MDP_BUF_SYNC_FLAG_WAIT 1