disp: msm: dp: add colorspace property for MSM DP

Add the colorspace property for DP controller for MSM. Also, change
the default method to send the colorimetry information to the sink
from MISC bits of MSA to VSC SDP packets if the sink supports it. This
helps to avoid dynamic switches between the packet types for sending
the colorimetry information during BT2020 and DCI-P3 use-cases.

Change-Id: I7ddf879a187b023fcf7404d64028e4d19b031119
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
This commit is contained in:
Abhinav Kumar
2019-06-07 19:13:41 -07:00
committed by Gerrit - the friendly Code Review server
orang tua 7f5f73ff41
melakukan 14e02e4b02
12 mengubah file dengan 492 tambahan dan 71 penghapusan

Melihat File

@@ -168,6 +168,14 @@ struct sde_connector_ops {
int (*set_backlight)(struct drm_connector *connector,
void *display, u32 bl_lvl);
/**
* set_colorspace - set colorspace for connector
* @connector: Pointer to drm connector structure
* @display: Pointer to private display structure
*/
int (*set_colorspace)(struct drm_connector *connector,
void *display);
/**
* soft_reset - perform a soft reset on the connector
* @display: Pointer to private display structure
@@ -400,6 +408,7 @@ struct sde_connector_dyn_hdr_metadata {
* @allow_bl_update: Flag to indicate if BL update is allowed currently or not
* @qsync_mode: Cached Qsync mode, 0=disabled, 1=continuous mode
* @qsync_updated: Qsync settings were updated
* @colorspace_updated: Colorspace property was updated
* last_cmd_tx_sts: status of the last command transfer
* @hdr_capable: external hdr support present
* @core_clk_rate: MDP core clk rate used for dynamic HDR packet calculation
@@ -452,6 +461,8 @@ struct sde_connector {
u32 qsync_mode;
bool qsync_updated;
bool colorspace_updated;
bool last_cmd_tx_sts;
bool hdr_capable;
};