]> git.baikalelectronics.ru Git - kernel.git/commit
DRM/radeon: For single CRTC GPUs move handling of CRTC_CRT_ON to crtc_dpms().
authorEgbert Eich <eich@suse.de>
Mon, 29 Oct 2012 12:46:48 +0000 (13:46 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Nov 2012 14:34:34 +0000 (10:34 -0400)
commit09f671c4d6e18b3b9a1954bb0e8e37c38a5ef4ba
tree880722e492fbeef1e3ae584887e87f41c6ea3be9
parenteaa1910a2d86d8a27eb7f8a5f57aab56d6ca63fc
DRM/radeon: For single CRTC GPUs move handling of CRTC_CRT_ON to crtc_dpms().

On all dual CRTC GPUs the CRTC_CRT_ON in the RADEON_CRTC_EXT_CNTL register
 controls the CRTC of the primary DAC. Therefore it is set in the DAC DMPS
function.
This is different for GPU's with a single CRTC but a primary and a
TV DAC: here it controls the single CRTC no matter where it is routed.
Therefore we set it here. This avoids an elaborate on/off state tracking
since both primary_dac_dpms() and tv_dac_dpms() functions would have
to touch this bit.
On single CRTC GPUs with just one DAC it's irrelevant where this bit
is handled.

agd5f: fix warning

Signed-off-by: Egbert Eich <eich@suse.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_legacy_crtc.c
drivers/gpu/drm/radeon/radeon_legacy_encoders.c