Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307474
b: refs/heads/master
c: 6225ee0
h: refs/heads/master
v: v3
  • Loading branch information
Adam Jackson authored and Dave Airlie committed May 22, 2012
1 parent 433bf4e commit 7328cf8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 40c5d876478abb5aa8e5fb1741205dd35fcffe42
refs/heads/master: 6225ee05ea44638b51ded0056505923cb6e2656d
21 changes: 21 additions & 0 deletions trunk/drivers/gpu/drm/nouveau/nouveau_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,25 @@ nouveau_dp_dpms(struct drm_encoder *encoder, int mode, u32 datarate,
nouveau_dp_link_train(encoder, datarate, func);
}

static void
nouveau_dp_probe_oui(struct drm_device *dev, struct nouveau_i2c_chan *auxch,
u8 *dpcd)
{
u8 buf[3];

if (!(dpcd[DP_DOWN_STREAM_PORT_COUNT] & DP_OUI_SUPPORT))
return;

if (!auxch_tx(dev, auxch->drive, 9, DP_SINK_OUI, buf, 3))
NV_DEBUG_KMS(dev, "Sink OUI: %02hx%02hx%02hx\n",
buf[0], buf[1], buf[2]);

if (!auxch_tx(dev, auxch->drive, 9, DP_BRANCH_OUI, buf, 3))
NV_DEBUG_KMS(dev, "Branch OUI: %02hx%02hx%02hx\n",
buf[0], buf[1], buf[2]);

}

bool
nouveau_dp_detect(struct drm_encoder *encoder)
{
Expand Down Expand Up @@ -544,6 +563,8 @@ nouveau_dp_detect(struct drm_encoder *encoder)
NV_DEBUG_KMS(dev, "maximum: %dx%d\n",
nv_encoder->dp.link_nr, nv_encoder->dp.link_bw);

nouveau_dp_probe_oui(dev, auxch, dpcd);

return true;
}

Expand Down

0 comments on commit 7328cf8

Please sign in to comment.