diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-10-16 11:15:25 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-10-25 23:28:22 -0400 |
commit | ebbe1cb936dfc96d809ccf4d64a9755f8ba0c0ff (patch) | |
tree | 42c9ef8b5552c84a2e02b5e35f17bfddc28927b5 /drivers/gpu/drm/radeon/radeon_mode.h | |
parent | c290dadf4cac25cc91529d84004795ab43fc0821 (diff) |
drm/radeon/kms/atom: add support for spread spectrum (v2)
Spread spectrum is a periodic disturbance added
to the feedback divider to change the pixel clock
periodically to reduce interference.
Only enabled on LVDS.
v2: add support for r4xx and fix DCE 3
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_mode.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_mode.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h index b6868fbe7346..2ea5707c018c 100644 --- a/drivers/gpu/drm/radeon/radeon_mode.h +++ b/drivers/gpu/drm/radeon/radeon_mode.h | |||
@@ -260,6 +260,16 @@ struct radeon_encoder_int_tmds { | |||
260 | struct radeon_tmds_pll tmds_pll[4]; | 260 | struct radeon_tmds_pll tmds_pll[4]; |
261 | }; | 261 | }; |
262 | 262 | ||
263 | /* spread spectrum */ | ||
264 | struct radeon_atom_ss { | ||
265 | uint16_t percentage; | ||
266 | uint8_t type; | ||
267 | uint8_t step; | ||
268 | uint8_t delay; | ||
269 | uint8_t range; | ||
270 | uint8_t refdiv; | ||
271 | }; | ||
272 | |||
263 | struct radeon_encoder_atom_dig { | 273 | struct radeon_encoder_atom_dig { |
264 | /* atom dig */ | 274 | /* atom dig */ |
265 | bool coherent_mode; | 275 | bool coherent_mode; |
@@ -267,6 +277,7 @@ struct radeon_encoder_atom_dig { | |||
267 | /* atom lvds */ | 277 | /* atom lvds */ |
268 | uint32_t lvds_misc; | 278 | uint32_t lvds_misc; |
269 | uint16_t panel_pwr_delay; | 279 | uint16_t panel_pwr_delay; |
280 | struct radeon_atom_ss *ss; | ||
270 | /* panel mode */ | 281 | /* panel mode */ |
271 | struct drm_display_mode native_mode; | 282 | struct drm_display_mode native_mode; |
272 | }; | 283 | }; |