Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269643
b: refs/heads/master
c: b681993
h: refs/heads/master
i:
  269641: 6fdcc7d
  269639: 2b1b354
v: v3
  • Loading branch information
Ben Skeggs committed Sep 20, 2011
1 parent 50d3288 commit ffb00b6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 629c1b9207386b00abd6453b72a19b15cd2202f8
refs/heads/master: b681993f7a48b847f3129abd8e8b3926c108a0d9
17 changes: 16 additions & 1 deletion trunk/drivers/gpu/drm/nouveau/nvd0_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,22 @@ nvd0_dac_disconnect(struct drm_encoder *encoder)
static enum drm_connector_status
nvd0_dac_detect(struct drm_encoder *encoder, struct drm_connector *connector)
{
return connector_status_disconnected;
enum drm_connector_status status = connector_status_disconnected;
struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder);
struct drm_device *dev = encoder->dev;
int or = nv_encoder->or;
u32 load;

nv_wr32(dev, 0x61a00c + (or * 0x800), 0x00100000);
udelay(9500);
nv_wr32(dev, 0x61a00c + (or * 0x800), 0x80000000);

load = nv_rd32(dev, 0x61a00c + (or * 0x800));
if ((load & 0x38000000) == 0x38000000)
status = connector_status_connected;

nv_wr32(dev, 0x61a00c + (or * 0x800), 0x00000000);
return status;
}

static void
Expand Down

0 comments on commit ffb00b6

Please sign in to comment.