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
nexedi
linux
Commits
f573c660
Commit
f573c660
authored
Sep 28, 2010
by
Chris Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/i915/dvo: Fix panel and DDC i2c pins
Signed-off-by:
Chris Wilson
<
chris@chris-wilson.co.uk
>
parent
a8ed0b16
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
drivers/gpu/drm/i915/intel_dvo.c
drivers/gpu/drm/i915/intel_dvo.c
+3
-9
No files found.
drivers/gpu/drm/i915/intel_dvo.c
View file @
f573c660
...
@@ -81,7 +81,6 @@ struct intel_dvo {
...
@@ -81,7 +81,6 @@ struct intel_dvo {
struct
intel_encoder
base
;
struct
intel_encoder
base
;
struct
intel_dvo_device
dev
;
struct
intel_dvo_device
dev
;
int
ddc_bus
;
struct
drm_display_mode
*
panel_fixed_mode
;
struct
drm_display_mode
*
panel_fixed_mode
;
bool
panel_wants_dither
;
bool
panel_wants_dither
;
...
@@ -245,7 +244,7 @@ static int intel_dvo_get_modes(struct drm_connector *connector)
...
@@ -245,7 +244,7 @@ static int intel_dvo_get_modes(struct drm_connector *connector)
* that's not the case.
* that's not the case.
*/
*/
intel_ddc_get_modes
(
connector
,
intel_ddc_get_modes
(
connector
,
&
dev_priv
->
gmbus
[
intel_dvo
->
ddc_bus
].
adapter
);
&
dev_priv
->
gmbus
[
GMBUS_PORT_DPC
].
adapter
);
if
(
!
list_empty
(
&
connector
->
probed_modes
))
if
(
!
list_empty
(
&
connector
->
probed_modes
))
return
1
;
return
1
;
...
@@ -349,7 +348,6 @@ void intel_dvo_init(struct drm_device *dev)
...
@@ -349,7 +348,6 @@ void intel_dvo_init(struct drm_device *dev)
struct
intel_encoder
*
intel_encoder
;
struct
intel_encoder
*
intel_encoder
;
struct
intel_dvo
*
intel_dvo
;
struct
intel_dvo
*
intel_dvo
;
struct
intel_connector
*
intel_connector
;
struct
intel_connector
*
intel_connector
;
int
ret
=
0
;
int
i
;
int
i
;
int
encoder_type
=
DRM_MODE_ENCODER_NONE
;
int
encoder_type
=
DRM_MODE_ENCODER_NONE
;
...
@@ -367,9 +365,6 @@ void intel_dvo_init(struct drm_device *dev)
...
@@ -367,9 +365,6 @@ void intel_dvo_init(struct drm_device *dev)
drm_encoder_init
(
dev
,
&
intel_encoder
->
base
,
drm_encoder_init
(
dev
,
&
intel_encoder
->
base
,
&
intel_dvo_enc_funcs
,
encoder_type
);
&
intel_dvo_enc_funcs
,
encoder_type
);
/* Set up the DDC bus */
intel_dvo
->
ddc_bus
=
GMBUS_PORT_DPB
;
/* Now, try to find a controller */
/* Now, try to find a controller */
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
intel_dvo_devices
);
i
++
)
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
intel_dvo_devices
);
i
++
)
{
struct
drm_connector
*
connector
=
&
intel_connector
->
base
;
struct
drm_connector
*
connector
=
&
intel_connector
->
base
;
...
@@ -384,7 +379,7 @@ void intel_dvo_init(struct drm_device *dev)
...
@@ -384,7 +379,7 @@ void intel_dvo_init(struct drm_device *dev)
if
(
dvo
->
gpio
!=
0
)
if
(
dvo
->
gpio
!=
0
)
gpio
=
dvo
->
gpio
;
gpio
=
dvo
->
gpio
;
else
if
(
dvo
->
type
==
INTEL_DVO_CHIP_LVDS
)
else
if
(
dvo
->
type
==
INTEL_DVO_CHIP_LVDS
)
gpio
=
GMBUS_PORT_
PANEL
;
gpio
=
GMBUS_PORT_
SSC
;
else
else
gpio
=
GMBUS_PORT_DPB
;
gpio
=
GMBUS_PORT_DPB
;
...
@@ -395,8 +390,7 @@ void intel_dvo_init(struct drm_device *dev)
...
@@ -395,8 +390,7 @@ void intel_dvo_init(struct drm_device *dev)
i2c
=
&
dev_priv
->
gmbus
[
gpio
].
adapter
;
i2c
=
&
dev_priv
->
gmbus
[
gpio
].
adapter
;
intel_dvo
->
dev
=
*
dvo
;
intel_dvo
->
dev
=
*
dvo
;
ret
=
dvo
->
dev_ops
->
init
(
&
intel_dvo
->
dev
,
i2c
);
if
(
!
dvo
->
dev_ops
->
init
(
&
intel_dvo
->
dev
,
i2c
))
if
(
!
ret
)
continue
;
continue
;
intel_encoder
->
type
=
INTEL_OUTPUT_DVO
;
intel_encoder
->
type
=
INTEL_OUTPUT_DVO
;
...
...
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