mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00
drm/i915/display: add intel_encoder_is_hdmi()
commit efa43b7516
upstream.
Similar to intel_encoder_is_dp() and friends.
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Tested-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/e6bf9e01deb5d0d8b566af128a762d1313638847.1735568047.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
428434769e
commit
4a764acf4a
|
@ -2075,6 +2075,19 @@ static inline bool intel_encoder_is_dp(struct intel_encoder *encoder)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline bool intel_encoder_is_hdmi(struct intel_encoder *encoder)
|
||||||
|
{
|
||||||
|
switch (encoder->type) {
|
||||||
|
case INTEL_OUTPUT_HDMI:
|
||||||
|
return true;
|
||||||
|
case INTEL_OUTPUT_DDI:
|
||||||
|
/* See if the HDMI encoder is valid. */
|
||||||
|
return i915_mmio_reg_valid(enc_to_intel_hdmi(encoder)->hdmi_reg);
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static inline struct intel_lspcon *
|
static inline struct intel_lspcon *
|
||||||
enc_to_intel_lspcon(struct intel_encoder *encoder)
|
enc_to_intel_lspcon(struct intel_encoder *encoder)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user