• Eugeni Dodonov's avatar
    drm/i915: detect digital outputs on Haswell · 0e72a5b5
    Eugeni Dodonov authored
    Digital port detection on Haswell is indicated by the presence of a bit in
    DDI_BUF_CTL for port A, and by a different register for ports B, C and D.
    So we check for those bits during the initialization time and let the hdmi
    function know about those.
    
    Note that this bit does not indicates whether the output is DP or HDMI.
    However, the DDI buffers can be programmed in a way that is shared between
    DP/HDMI and FDI/HDMI except for PORT E.
    
    So for now, we detect those digital outputs as being HDMI, but proper DP
    support is still pending.
    
    Note that DDI A can only drive eDP, so we do not handle it here for hdmi
    initialization.
    
    v2: simplify Haswell handling logic
    
    v3: use generic function for handling digital outputs.
    Signed-off-by: default avatarEugeni Dodonov <eugeni.dodonov@intel.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    0e72a5b5
intel_drv.h 16.3 KB