drm/radeon: fix indentation.
I hate doing this but it hurts my eyes to go over code that does not comply with indentation rules. Only thing that is not only space change is in atom.c all other files are space indentation issues. Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Jérôme Glisse <jglisse@redhat.com> Cc: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
60123300db
commit
3cf8bb1ad1
@@ -818,52 +818,52 @@ static void radeon_legacy_tmds_int_mode_set(struct drm_encoder *encoder,
|
||||
tmds_transmitter_cntl = RREG32(RADEON_TMDS_TRANSMITTER_CNTL) &
|
||||
~(RADEON_TMDS_TRANSMITTER_PLLRST);
|
||||
|
||||
if (rdev->family == CHIP_R200 ||
|
||||
rdev->family == CHIP_R100 ||
|
||||
ASIC_IS_R300(rdev))
|
||||
tmds_transmitter_cntl &= ~(RADEON_TMDS_TRANSMITTER_PLLEN);
|
||||
else /* RV chips got this bit reversed */
|
||||
tmds_transmitter_cntl |= RADEON_TMDS_TRANSMITTER_PLLEN;
|
||||
if (rdev->family == CHIP_R200 ||
|
||||
rdev->family == CHIP_R100 ||
|
||||
ASIC_IS_R300(rdev))
|
||||
tmds_transmitter_cntl &= ~(RADEON_TMDS_TRANSMITTER_PLLEN);
|
||||
else /* RV chips got this bit reversed */
|
||||
tmds_transmitter_cntl |= RADEON_TMDS_TRANSMITTER_PLLEN;
|
||||
|
||||
fp_gen_cntl = (RREG32(RADEON_FP_GEN_CNTL) |
|
||||
(RADEON_FP_CRTC_DONT_SHADOW_VPAR |
|
||||
RADEON_FP_CRTC_DONT_SHADOW_HEND));
|
||||
fp_gen_cntl = (RREG32(RADEON_FP_GEN_CNTL) |
|
||||
(RADEON_FP_CRTC_DONT_SHADOW_VPAR |
|
||||
RADEON_FP_CRTC_DONT_SHADOW_HEND));
|
||||
|
||||
fp_gen_cntl &= ~(RADEON_FP_FPON | RADEON_FP_TMDS_EN);
|
||||
fp_gen_cntl &= ~(RADEON_FP_FPON | RADEON_FP_TMDS_EN);
|
||||
|
||||
fp_gen_cntl &= ~(RADEON_FP_RMX_HVSYNC_CONTROL_EN |
|
||||
RADEON_FP_DFP_SYNC_SEL |
|
||||
RADEON_FP_CRT_SYNC_SEL |
|
||||
RADEON_FP_CRTC_LOCK_8DOT |
|
||||
RADEON_FP_USE_SHADOW_EN |
|
||||
RADEON_FP_CRTC_USE_SHADOW_VEND |
|
||||
RADEON_FP_CRT_SYNC_ALT);
|
||||
fp_gen_cntl &= ~(RADEON_FP_RMX_HVSYNC_CONTROL_EN |
|
||||
RADEON_FP_DFP_SYNC_SEL |
|
||||
RADEON_FP_CRT_SYNC_SEL |
|
||||
RADEON_FP_CRTC_LOCK_8DOT |
|
||||
RADEON_FP_USE_SHADOW_EN |
|
||||
RADEON_FP_CRTC_USE_SHADOW_VEND |
|
||||
RADEON_FP_CRT_SYNC_ALT);
|
||||
|
||||
if (1) /* FIXME rgbBits == 8 */
|
||||
fp_gen_cntl |= RADEON_FP_PANEL_FORMAT; /* 24 bit format */
|
||||
else
|
||||
fp_gen_cntl &= ~RADEON_FP_PANEL_FORMAT;/* 18 bit format */
|
||||
if (1) /* FIXME rgbBits == 8 */
|
||||
fp_gen_cntl |= RADEON_FP_PANEL_FORMAT; /* 24 bit format */
|
||||
else
|
||||
fp_gen_cntl &= ~RADEON_FP_PANEL_FORMAT;/* 18 bit format */
|
||||
|
||||
if (radeon_crtc->crtc_id == 0) {
|
||||
if (ASIC_IS_R300(rdev) || rdev->family == CHIP_R200) {
|
||||
fp_gen_cntl &= ~R200_FP_SOURCE_SEL_MASK;
|
||||
if (radeon_encoder->rmx_type != RMX_OFF)
|
||||
fp_gen_cntl |= R200_FP_SOURCE_SEL_RMX;
|
||||
else
|
||||
fp_gen_cntl |= R200_FP_SOURCE_SEL_CRTC1;
|
||||
} else
|
||||
fp_gen_cntl &= ~RADEON_FP_SEL_CRTC2;
|
||||
} else {
|
||||
if (ASIC_IS_R300(rdev) || rdev->family == CHIP_R200) {
|
||||
fp_gen_cntl &= ~R200_FP_SOURCE_SEL_MASK;
|
||||
fp_gen_cntl |= R200_FP_SOURCE_SEL_CRTC2;
|
||||
} else
|
||||
fp_gen_cntl |= RADEON_FP_SEL_CRTC2;
|
||||
}
|
||||
if (radeon_crtc->crtc_id == 0) {
|
||||
if (ASIC_IS_R300(rdev) || rdev->family == CHIP_R200) {
|
||||
fp_gen_cntl &= ~R200_FP_SOURCE_SEL_MASK;
|
||||
if (radeon_encoder->rmx_type != RMX_OFF)
|
||||
fp_gen_cntl |= R200_FP_SOURCE_SEL_RMX;
|
||||
else
|
||||
fp_gen_cntl |= R200_FP_SOURCE_SEL_CRTC1;
|
||||
} else
|
||||
fp_gen_cntl &= ~RADEON_FP_SEL_CRTC2;
|
||||
} else {
|
||||
if (ASIC_IS_R300(rdev) || rdev->family == CHIP_R200) {
|
||||
fp_gen_cntl &= ~R200_FP_SOURCE_SEL_MASK;
|
||||
fp_gen_cntl |= R200_FP_SOURCE_SEL_CRTC2;
|
||||
} else
|
||||
fp_gen_cntl |= RADEON_FP_SEL_CRTC2;
|
||||
}
|
||||
|
||||
WREG32(RADEON_TMDS_PLL_CNTL, tmds_pll_cntl);
|
||||
WREG32(RADEON_TMDS_TRANSMITTER_CNTL, tmds_transmitter_cntl);
|
||||
WREG32(RADEON_FP_GEN_CNTL, fp_gen_cntl);
|
||||
WREG32(RADEON_TMDS_PLL_CNTL, tmds_pll_cntl);
|
||||
WREG32(RADEON_TMDS_TRANSMITTER_CNTL, tmds_transmitter_cntl);
|
||||
WREG32(RADEON_FP_GEN_CNTL, fp_gen_cntl);
|
||||
|
||||
if (rdev->is_atom_bios)
|
||||
radeon_atombios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id);
|
||||
|
||||
Reference in New Issue
Block a user