summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-11-19 19:40:54 -0500
committerAlex Deucher <alexdeucher@gmail.com>2009-11-19 19:40:54 -0500
commitf42412ec4dbd21f562a7fe4239c0a1f17ef1b8f2 (patch)
tree422fc7f13328fc1bbd3e92a23344e6701c7e0ba3
parent54c09778d79de1516ee511d6d7d5b54dd4bf9130 (diff)
wip
-rw-r--r--src/atombios_output.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/atombios_output.c b/src/atombios_output.c
index a4dd4af6..0c705e8a 100644
--- a/src/atombios_output.c
+++ b/src/atombios_output.c
@@ -2010,7 +2010,7 @@ void RADEON_DP_GetDPCP(xf86OutputPtr output)
ErrorF("%02x ", radeon_output->dpcp8[i]);
ErrorF("\n");
}
- ret = atom_dp_aux_native_read(output, 0x100, 0, 2, msg);
+ ret = atom_dp_aux_native_read(output, DP_LINK_BW_SET, 0, 2, msg);
if (ret) {
ErrorF("0x200: %02x %02x\n", msg[0], msg[1]);
}
@@ -2492,7 +2492,7 @@ static void do_displayport_dance(xf86OutputPtr output, DisplayModePtr mode, Disp
int enc_id = atom_dp_get_encoder_id(output);
Bool clock_recovery;
uint8_t link_status[DP_LINK_STATUS_SIZE];
- uint8_t tries, voltage;
+ uint8_t tries, voltage, ss_cntl;
uint8_t train_set[4];
Bool ret;
int i;
@@ -2522,9 +2522,14 @@ static void do_displayport_dance(xf86OutputPtr output, DisplayModePtr mode, Disp
ErrorF("atom_dp_aux_native_write - link rate / num /framing\n");
/* write link rate / num / eh framing */
- atom_dp_aux_native_write(output, 0x100, 2,
+ atom_dp_aux_native_write(output, DP_LINK_BW_SET, 2,
radeon_output->dp_link_configuration);
+ /* write ss cntl */
+ ss_cntl = 0;
+ atom_dp_aux_native_write(output, DP_DOWNSPREAD_CTRL, 1,
+ &ss_cntl);
+
ErrorF("RADEONDPEncoderService - ATOM_DP_ACTION_TRAINING_START\n");
/* start local training start */
RADEONDPEncoderService(output, ATOM_DP_ACTION_TRAINING_START, enc_id, 0);