Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
53c44c3a
Commit
53c44c3a
authored
Mar 04, 2010
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: Gigabyte NX85T connector table lies, it has DVI-I not HDMI
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
da647d5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
drivers/gpu/drm/nouveau/nouveau_bios.c
drivers/gpu/drm/nouveau/nouveau_bios.c
+17
-0
No files found.
drivers/gpu/drm/nouveau/nouveau_bios.c
View file @
53c44c3a
...
@@ -5210,6 +5210,21 @@ divine_connector_type(struct nvbios *bios, int index)
...
@@ -5210,6 +5210,21 @@ divine_connector_type(struct nvbios *bios, int index)
return
type
;
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
static
void
parse_dcb_connector_table
(
struct
nvbios
*
bios
)
parse_dcb_connector_table
(
struct
nvbios
*
bios
)
{
{
...
@@ -5266,6 +5281,8 @@ parse_dcb_connector_table(struct nvbios *bios)
...
@@ -5266,6 +5281,8 @@ parse_dcb_connector_table(struct nvbios *bios)
if
(
cte
->
type
==
0xff
)
if
(
cte
->
type
==
0xff
)
continue
;
continue
;
apply_dcb_connector_quirks
(
bios
,
i
);
NV_INFO
(
dev
,
" %d: 0x%08x: type 0x%02x idx %d tag 0x%02x
\n
"
,
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
);
i
,
cte
->
entry
,
cte
->
type
,
cte
->
index
,
cte
->
gpio_tag
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment