9636f9028572ec989480a1b6a381e parent e615efe4b879de87ef6a4192d7e5b0bd0d2e1518 author Eugeni Dodonov 1336588647 -0300 committer Daniel Vetter 1337459990 +0200 drm/i915: detect digital outputs on Haswell 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: Eugeni Dodonov Signed-off-by: Daniel Vetter OUux5x