drm/radeon/kms: DP aux updates for DCE6
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Mar 2012 21:18:06 +0000 (17:18 -0400)
committerDave Airlie <airlied@redhat.com>
Wed, 21 Mar 2012 06:55:51 +0000 (06:55 +0000)
DCE6 requires a non-0 value for lpAuxRequest for the
ProcessAuxChannelTransaction command table.  Setting
lpAuxRequest to 0 is a special case used by AsicInit
for setting up the aux pads.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atombios_dp.c

index 191218ad92e7906925337f83e8c7f85125c47b91..6c62be226804ddf124e0d310d57bca6f314cb5e7 100644 (file)
@@ -63,12 +63,12 @@ static int radeon_process_aux_ch(struct radeon_i2c_chan *chan,
 
        memset(&args, 0, sizeof(args));
 
-       base = (unsigned char *)rdev->mode_info.atom_context->scratch;
+       base = (unsigned char *)(rdev->mode_info.atom_context->scratch + 1);
 
        memcpy(base, send, send_bytes);
 
-       args.v1.lpAuxRequest = 0;
-       args.v1.lpDataOut = 16;
+       args.v1.lpAuxRequest = 0 + 4;
+       args.v1.lpDataOut = 16 + 4;
        args.v1.ucDataOutLen = 0;
        args.v1.ucChannelID = chan->rec.i2c_id;
        args.v1.ucDelay = delay / 10;
This page took 0.026643 seconds and 5 git commands to generate.