OSDN Git Service

drm/i915: Introduce device info port_mask
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 16 Jun 2023 14:08:15 +0000 (17:08 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 20 Jun 2023 16:07:37 +0000 (19:07 +0300)
commit2798e4d1ccd9b3916a8a4088fa24c0338ede9d90
treead4a4de68d208016abf05df6b9815906ddc51413
parent7142ec2e939872d541f88123c491f992dfad4e38
drm/i915: Introduce device info port_mask

Declare the available DVO/SDVO/HDMI/DP/DDI ports in the
device info. The other outputs (LVDS/TV/DSI/VGA) are left
out since for most of them we don't consider them as "ports".

DSI we should probably perhaps include somehow in the device
info. Just not sure how. Or we just introduce a HAS_DSI() and
call it a day?

TODO: figure out what to do about the subplatform stuff. Would
      it be better to declare those directly with a different
      device info or not? Also not sure the icl port-f stuff
      matters even. Bspec claims there are icl SKUs with far
      less ports than that and we don't seem to check for those
      either?

v2: Fix TC5 vs. TC6 mixup on TGL (Jani)
    Drop DDI C for now on TGL, and add a FIXME (Jani)

Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230616140820.11726-3-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_display_device.c
drivers/gpu/drm/i915/display/intel_display_device.h
drivers/gpu/drm/i915/intel_device_info.c