diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2011-05-20 04:34:20 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-05-20 06:02:25 -0400 |
commit | 4e633939fe39a98824a0c590a6c1e30559071100 (patch) | |
tree | a68629d3d8d9229f33877cd919c046fc065f91db /drivers | |
parent | 2dafb74d63d3f79d0357ff19bf7691c22b034926 (diff) |
drm/radeon/kms: make sure eDP panel is on for modesetting
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_encoders.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_encoders.c b/drivers/gpu/drm/radeon/radeon_encoders.c index cdac73975f6e..fd0087faf758 100644 --- a/drivers/gpu/drm/radeon/radeon_encoders.c +++ b/drivers/gpu/drm/radeon/radeon_encoders.c | |||
@@ -1936,11 +1936,17 @@ static void radeon_atom_encoder_prepare(struct drm_encoder *encoder) | |||
1936 | radeon_atom_output_lock(encoder, true); | 1936 | radeon_atom_output_lock(encoder, true); |
1937 | radeon_atom_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); | 1937 | radeon_atom_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); |
1938 | 1938 | ||
1939 | /* select the clock/data port if it uses a router */ | ||
1940 | if (connector) { | 1939 | if (connector) { |
1941 | struct radeon_connector *radeon_connector = to_radeon_connector(connector); | 1940 | struct radeon_connector *radeon_connector = to_radeon_connector(connector); |
1941 | |||
1942 | /* select the clock/data port if it uses a router */ | ||
1942 | if (radeon_connector->router.cd_valid) | 1943 | if (radeon_connector->router.cd_valid) |
1943 | radeon_router_select_cd_port(radeon_connector); | 1944 | radeon_router_select_cd_port(radeon_connector); |
1945 | |||
1946 | /* turn eDP panel on for mode set */ | ||
1947 | if (connector->connector_type == DRM_MODE_CONNECTOR_eDP) | ||
1948 | atombios_set_edp_panel_power(connector, | ||
1949 | ATOM_TRANSMITTER_ACTION_POWER_ON); | ||
1944 | } | 1950 | } |
1945 | 1951 | ||
1946 | /* this is needed for the pll/ss setup to work correctly in some cases */ | 1952 | /* this is needed for the pll/ss setup to work correctly in some cases */ |