drm/radeon/kms: rework spread spectrum handling
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 4 Oct 2010 21:13:01 +0000 (17:13 -0400)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Oct 2010 01:46:26 +0000 (11:46 +1000)
commitba032a58d1f320039e7850fb6e8651695c1aa571
treef883a015e10d00b79505d16682d504e6914118e8
parent48dfaaeb6637240af3089bf9b7a00a6cf24e0182
drm/radeon/kms: rework spread spectrum handling

This patch reworks spread spectrum handling to enable it
properly on lvds and DP/eDP links.  It also fixes several
bugs in the old spread spectrum code.

- Use the ss recommended reference divider if available
when calculating the pll
- Use the proper ss command tables on pre-DCE3 asics
- Avoid reading past the end of the ss info tables
- Enable ss on evergreen asics (lvds, dp, tmds)
- Enable ss on DP/eDP links

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atombios_crtc.c
drivers/gpu/drm/radeon/radeon_atombios.c
drivers/gpu/drm/radeon/radeon_encoders.c
drivers/gpu/drm/radeon/radeon_mode.h