Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189305
b: refs/heads/master
c: 53c44c3
h: refs/heads/master
i:
  189303: ccd02aa
v: v3
  • Loading branch information
Ben Skeggs committed Mar 10, 2010
1 parent b66b28b commit ef6e165
Show file tree
Hide file tree
Showing 2 changed files with 18 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: da647d5bf3c0a4b7ad150803910cb1d737ac522e
refs/heads/master: 53c44c3a065ac48c4ccb38f811cf7c5d305c9d4e
17 changes: 17 additions & 0 deletions trunk/drivers/gpu/drm/nouveau/nouveau_bios.c
Original file line number Diff line number Diff line change
Expand Up @@ -5210,6 +5210,21 @@ divine_connector_type(struct nvbios *bios, int index)
return type;
}

static void
apply_dcb_connector_quirks(struct nvbios *bios, int idx)
{
struct dcb_connector_table_entry *cte = &bios->dcb.connector.entry[idx];
struct drm_device *dev = bios->dev;

/* Gigabyte NX85T */
if ((dev->pdev->device == 0x0421) &&
(dev->pdev->subsystem_vendor == 0x1458) &&
(dev->pdev->subsystem_device == 0x344c)) {
if (cte->type == DCB_CONNECTOR_HDMI_1)
cte->type = DCB_CONNECTOR_DVI_I;
}
}

static void
parse_dcb_connector_table(struct nvbios *bios)
{
Expand Down Expand Up @@ -5266,6 +5281,8 @@ parse_dcb_connector_table(struct nvbios *bios)
if (cte->type == 0xff)
continue;

apply_dcb_connector_quirks(bios, i);

NV_INFO(dev, " %d: 0x%08x: type 0x%02x idx %d tag 0x%02x\n",
i, cte->entry, cte->type, cte->index, cte->gpio_tag);

Expand Down

0 comments on commit ef6e165

Please sign in to comment.