mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
drm/i915/dp: add pre-PCH eDP checking to DP detect for VLV
Allows us to detect eDP panels that may not have the hotplug pin wired up. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
086ddccec4
commit
35aad75fd3
1 changed files with 10 additions and 0 deletions
|
@ -2258,6 +2258,16 @@ g4x_dp_detect(struct intel_dp *intel_dp)
|
||||||
struct intel_digital_port *intel_dig_port = dp_to_dig_port(intel_dp);
|
struct intel_digital_port *intel_dig_port = dp_to_dig_port(intel_dp);
|
||||||
uint32_t bit;
|
uint32_t bit;
|
||||||
|
|
||||||
|
/* Can't disconnect eDP, but you can close the lid... */
|
||||||
|
if (is_edp(intel_dp)) {
|
||||||
|
enum drm_connector_status status;
|
||||||
|
|
||||||
|
status = intel_panel_detect(dev);
|
||||||
|
if (status == connector_status_unknown)
|
||||||
|
status = connector_status_connected;
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
switch (intel_dig_port->port) {
|
switch (intel_dig_port->port) {
|
||||||
case PORT_B:
|
case PORT_B:
|
||||||
bit = PORTB_HOTPLUG_LIVE_STATUS;
|
bit = PORTB_HOTPLUG_LIVE_STATUS;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue