msm: mdss: Add six zone functionality for PP PAv2
Added six zone memory color adjustment for picture adjustment block
in post-processing. This includes the necessary structures, flags,
and register reads and writes in order to program the six zone LUT hardware
block in PA
Change-Id: Idb381077497e2b63399ebeb7051027a46b5dd6e1
Signed-off-by: Benet Clark <benetc@codeaurora.org>
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
diff --git a/include/linux/msm_mdp.h b/include/linux/msm_mdp.h
index db1f25d..1be32d9 100644
--- a/include/linux/msm_mdp.h
+++ b/include/linux/msm_mdp.h
@@ -422,6 +422,8 @@
uint32_t val_region;
};
+#define MDP_SIX_ZONE_TABLE_NUM 384
+
struct mdp_pa_v2_data {
/* Mask bits for PA features */
uint32_t flags;
@@ -429,6 +431,9 @@
uint32_t global_sat_adj;
uint32_t global_val_adj;
uint32_t global_cont_adj;
+ uint32_t *six_zone_curve_p0;
+ uint32_t *six_zone_curve_p1;
+ uint32_t six_zone_thresh;
struct mdp_pa_mem_col_cfg skin_cfg;
struct mdp_pa_mem_col_cfg sky_cfg;
struct mdp_pa_mem_col_cfg fol_cfg;