diff options
author | Uma Shankar <uma.shankar@intel.com> | 2020-12-01 02:17:24 +0530 |
---|---|---|
committer | Uma Shankar <uma.shankar@intel.com> | 2020-12-02 01:22:27 +0530 |
commit | 81cc320aa3592ee257d1a4a5d72124546f981dad (patch) | |
tree | a9a8a4b6de04e3ee7c8917ad59bbfdee339530f2 /drivers/gpu/drm/i915/display/intel_lspcon.h | |
parent | efab47658a6c0fee7add0e5263e1fbc9a62cfa55 (diff) | |
download | linux-81cc320aa3592ee257d1a4a5d72124546f981dad.tar.gz linux-81cc320aa3592ee257d1a4a5d72124546f981dad.tar.bz2 linux-81cc320aa3592ee257d1a4a5d72124546f981dad.zip |
drm/i915/display: Add HDR Capability detection for LSPCON
LSPCON firmware exposes HDR capability through LPCON_CAPABILITIES
DPCD register. LSPCON implementations capable of supporting
HDR set HDR_CAPABILITY bit in LSPCON_CAPABILITIES to 1. This patch
reads the same, detects the HDR capability and adds this to
intel_lspcon struct.
v2: Addressed Jani Nikula's review comment and fixed the HDR
capability detection logic
v3: Deferred HDR detection from lspcon_init (Ville)
v4: Addressed Ville's minor review comments, added his RB.
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201130204738.2443-2-uma.shankar@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_lspcon.h')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_lspcon.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_lspcon.h b/drivers/gpu/drm/i915/display/intel_lspcon.h index b03dcb7076d8..a19b3564c635 100644 --- a/drivers/gpu/drm/i915/display/intel_lspcon.h +++ b/drivers/gpu/drm/i915/display/intel_lspcon.h @@ -15,6 +15,7 @@ struct intel_digital_port; struct intel_encoder; struct intel_lspcon; +void lspcon_detect_hdr_capability(struct intel_lspcon *lspcon); void lspcon_resume(struct intel_digital_port *dig_port); void lspcon_wait_pcon_mode(struct intel_lspcon *lspcon); void lspcon_write_infoframe(struct intel_encoder *encoder, |