msm: mdss: Add six zone LUT size as PAv2 parameter
Added six zone LUT size as a parameter to PAv2 in order for the size to be
specified by the user. This size is sanitized based on the required LUT
size.
Change-Id: Iaf1b418ce1a3ec4b5013b1192c7f3b7de5827e3d
Signed-off-by: Benet Clark <benetc@codeaurora.org>
diff --git a/include/linux/msm_mdp.h b/include/linux/msm_mdp.h
index 724e573..7a1d857 100644
--- a/include/linux/msm_mdp.h
+++ b/include/linux/msm_mdp.h
@@ -422,7 +422,7 @@
uint32_t val_region;
};
-#define MDP_SIX_ZONE_TABLE_NUM 384
+#define MDP_SIX_ZONE_LUT_SIZE 384
struct mdp_pa_v2_data {
/* Mask bits for PA features */
@@ -431,6 +431,7 @@
uint32_t global_sat_adj;
uint32_t global_val_adj;
uint32_t global_cont_adj;
+ uint32_t six_zone_len;
uint32_t *six_zone_curve_p0;
uint32_t *six_zone_curve_p1;
uint32_t six_zone_thresh;