diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2013-11-01 14:32:07 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-11-05 01:59:30 -0500 |
commit | 78eb06c394da002aa7e059e84aa6aa58880b4bba (patch) | |
tree | 1c1a3b9be0953135197e970b0fe6a49e1ad9b620 | |
parent | 9ca2fe731b3f12afbc97cf0050dfa4184bd2234c (diff) |
drm/i915: Give names to the VBT child device type bits
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/intel_bios.c | 10 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_bios.h | 16 |
2 files changed, 21 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c index e29bcae1ef81..6dd622d733b9 100644 --- a/drivers/gpu/drm/i915/intel_bios.c +++ b/drivers/gpu/drm/i915/intel_bios.c | |||
@@ -624,11 +624,11 @@ static void parse_ddi_port(struct drm_i915_private *dev_priv, enum port port, | |||
624 | 624 | ||
625 | aux_channel = child->raw[25]; | 625 | aux_channel = child->raw[25]; |
626 | 626 | ||
627 | is_dvi = child->common.device_type & (1 << 4); | 627 | is_dvi = child->common.device_type & DEVICE_TYPE_TMDS_DVI_SIGNALING; |
628 | is_dp = child->common.device_type & (1 << 2); | 628 | is_dp = child->common.device_type & DEVICE_TYPE_DISPLAYPORT_OUTPUT; |
629 | is_crt = child->common.device_type & (1 << 0); | 629 | is_crt = child->common.device_type & DEVICE_TYPE_ANALOG_OUTPUT; |
630 | is_hdmi = is_dvi && (child->common.device_type & (1 << 11)) == 0; | 630 | is_hdmi = is_dvi && (child->common.device_type & DEVICE_TYPE_NOT_HDMI_OUTPUT) == 0; |
631 | is_edp = is_dp && (child->common.device_type & (1 << 12)); | 631 | is_edp = is_dp && (child->common.device_type & DEVICE_TYPE_INTERNAL_CONNECTOR); |
632 | 632 | ||
633 | info->supports_dvi = is_dvi; | 633 | info->supports_dvi = is_dvi; |
634 | info->supports_hdmi = is_hdmi; | 634 | info->supports_hdmi = is_hdmi; |
diff --git a/drivers/gpu/drm/i915/intel_bios.h b/drivers/gpu/drm/i915/intel_bios.h index 287cc5a21c2e..f439c147368a 100644 --- a/drivers/gpu/drm/i915/intel_bios.h +++ b/drivers/gpu/drm/i915/intel_bios.h | |||
@@ -638,6 +638,22 @@ int intel_parse_bios(struct drm_device *dev); | |||
638 | #define DEVICE_TYPE_DP 0x68C6 | 638 | #define DEVICE_TYPE_DP 0x68C6 |
639 | #define DEVICE_TYPE_eDP 0x78C6 | 639 | #define DEVICE_TYPE_eDP 0x78C6 |
640 | 640 | ||
641 | #define DEVICE_TYPE_CLASS_EXTENSION (1 << 15) | ||
642 | #define DEVICE_TYPE_POWER_MANAGEMENT (1 << 14) | ||
643 | #define DEVICE_TYPE_HOTPLUG_SIGNALING (1 << 13) | ||
644 | #define DEVICE_TYPE_INTERNAL_CONNECTOR (1 << 12) | ||
645 | #define DEVICE_TYPE_NOT_HDMI_OUTPUT (1 << 11) | ||
646 | #define DEVICE_TYPE_MIPI_OUTPUT (1 << 10) | ||
647 | #define DEVICE_TYPE_COMPOSITE_OUTPUT (1 << 9) | ||
648 | #define DEVICE_TYPE_DUAL_CHANNEL (1 << 8) | ||
649 | #define DEVICE_TYPE_HIGH_SPEED_LINK (1 << 6) | ||
650 | #define DEVICE_TYPE_LVDS_SINGALING (1 << 5) | ||
651 | #define DEVICE_TYPE_TMDS_DVI_SIGNALING (1 << 4) | ||
652 | #define DEVICE_TYPE_VIDEO_SIGNALING (1 << 3) | ||
653 | #define DEVICE_TYPE_DISPLAYPORT_OUTPUT (1 << 2) | ||
654 | #define DEVICE_TYPE_DIGITAL_OUTPUT (1 << 1) | ||
655 | #define DEVICE_TYPE_ANALOG_OUTPUT (1 << 0) | ||
656 | |||
641 | /* define the DVO port for HDMI output type */ | 657 | /* define the DVO port for HDMI output type */ |
642 | #define DVO_B 1 | 658 | #define DVO_B 1 |
643 | #define DVO_C 2 | 659 | #define DVO_C 2 |