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
fa2c113a
Commit
fa2c113a
authored
Mar 22, 2012
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: add bios connector type for dms59
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
f3c93cbd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
drivers/gpu/drm/nouveau/nouveau_bios.h
drivers/gpu/drm/nouveau/nouveau_bios.h
+2
-0
drivers/gpu/drm/nouveau/nouveau_connector.c
drivers/gpu/drm/nouveau/nouveau_connector.c
+6
-7
No files found.
drivers/gpu/drm/nouveau/nouveau_bios.h
View file @
fa2c113a
...
@@ -69,6 +69,8 @@ enum dcb_connector_type {
...
@@ -69,6 +69,8 @@ enum dcb_connector_type {
DCB_CONNECTOR_TV_3
=
0x13
,
DCB_CONNECTOR_TV_3
=
0x13
,
DCB_CONNECTOR_DVI_I
=
0x30
,
DCB_CONNECTOR_DVI_I
=
0x30
,
DCB_CONNECTOR_DVI_D
=
0x31
,
DCB_CONNECTOR_DVI_D
=
0x31
,
DCB_CONNECTOR_DMS59_0
=
0x38
,
DCB_CONNECTOR_DMS59_1
=
0x39
,
DCB_CONNECTOR_LVDS
=
0x40
,
DCB_CONNECTOR_LVDS
=
0x40
,
DCB_CONNECTOR_LVDS_SPWG
=
0x41
,
DCB_CONNECTOR_LVDS_SPWG
=
0x41
,
DCB_CONNECTOR_DP
=
0x46
,
DCB_CONNECTOR_DP
=
0x46
,
...
...
drivers/gpu/drm/nouveau/nouveau_connector.c
View file @
fa2c113a
...
@@ -867,6 +867,8 @@ drm_conntype_from_dcb(enum dcb_connector_type dcb)
...
@@ -867,6 +867,8 @@ drm_conntype_from_dcb(enum dcb_connector_type dcb)
case
DCB_CONNECTOR_TV_0
:
case
DCB_CONNECTOR_TV_0
:
case
DCB_CONNECTOR_TV_1
:
case
DCB_CONNECTOR_TV_1
:
case
DCB_CONNECTOR_TV_3
:
return
DRM_MODE_CONNECTOR_TV
;
case
DCB_CONNECTOR_TV_3
:
return
DRM_MODE_CONNECTOR_TV
;
case
DCB_CONNECTOR_DMS59_0
:
case
DCB_CONNECTOR_DMS59_1
:
case
DCB_CONNECTOR_DVI_I
:
return
DRM_MODE_CONNECTOR_DVII
;
case
DCB_CONNECTOR_DVI_I
:
return
DRM_MODE_CONNECTOR_DVII
;
case
DCB_CONNECTOR_DVI_D
:
return
DRM_MODE_CONNECTOR_DVID
;
case
DCB_CONNECTOR_DVI_D
:
return
DRM_MODE_CONNECTOR_DVID
;
case
DCB_CONNECTOR_LVDS
:
case
DCB_CONNECTOR_LVDS
:
...
@@ -1013,13 +1015,10 @@ nouveau_connector_create(struct drm_device *dev, int index)
...
@@ -1013,13 +1015,10 @@ nouveau_connector_create(struct drm_device *dev, int index)
/* Add overscan compensation options to digital outputs */
/* Add overscan compensation options to digital outputs */
if
(
disp
->
underscan_property
&&
if
(
disp
->
underscan_property
&&
(
nv_connector
->
type
==
DCB_CONNECTOR_DVI_D
||
(
type
==
DRM_MODE_CONNECTOR_DVID
||
nv_connector
->
type
==
DCB_CONNECTOR_DVI_I
||
type
==
DRM_MODE_CONNECTOR_DVII
||
nv_connector
->
type
==
DCB_CONNECTOR_HDMI_0
||
type
==
DRM_MODE_CONNECTOR_HDMIA
||
nv_connector
->
type
==
DCB_CONNECTOR_HDMI_1
||
type
==
DRM_MODE_CONNECTOR_DisplayPort
))
{
nv_connector
->
type
==
DCB_CONNECTOR_DP
||
nv_connector
->
type
==
DCB_CONNECTOR_DMS59_DP0
||
nv_connector
->
type
==
DCB_CONNECTOR_DMS59_DP1
))
{
drm_connector_attach_property
(
connector
,
drm_connector_attach_property
(
connector
,
disp
->
underscan_property
,
disp
->
underscan_property
,
UNDERSCAN_OFF
);
UNDERSCAN_OFF
);
...
...
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