Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
odroid-linux-3.10.y-rt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
oai
odroid-linux-3.10.y-rt
Commits
f532f99a
Commit
f532f99a
authored
Nov 05, 2015
by
Mauro Ribeiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/exynos: control dvi mode via a kernel parameter
Change-Id: I11898db158dc0594c8b5e16a5b95b6f8db5853e9
parent
cafcd6f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
drivers/gpu/drm/exynos/exynos_hdmi.c
drivers/gpu/drm/exynos/exynos_hdmi.c
+22
-0
No files found.
drivers/gpu/drm/exynos/exynos_hdmi.c
View file @
f532f99a
...
...
@@ -219,6 +219,26 @@ struct hdmiphy_config {
};
#if defined(CONFIG_MACH_ODROIDXU3)
//-----------------------------------------------------------------------------
// DVI Control (defaults to hdmi always).
//
//-----------------------------------------------------------------------------
unsigned
int
gdvi_mode
=
false
;
static
int
__init
dvi_force_enable
(
char
*
l
)
{
if
(
!
strcmp
(
l
,
"dvi"
))
{
gdvi_mode
=
true
;
pr_emerg
(
"hdmi: using DVI Mode
\n
"
);
}
else
{
gdvi_mode
=
false
;
pr_emerg
(
"hdmi: using HDMI Mode
\n
"
);
}
return
0
;
}
__setup
(
"vout="
,
dvi_force_enable
);
//-----------------------------------------------------------------------------
//
// HPD Signal Disable control.
...
...
@@ -1335,6 +1355,8 @@ static int hdmi_get_modes(struct drm_connector *connector)
return
-
ENODEV
;
hdata
->
dvi_mode
=
!
drm_detect_hdmi_monitor
(
edid
);
hdata
->
dvi_mode
=
gdvi_mode
;
DRM_DEBUG_KMS
(
"%s : width[%d] x height[%d]
\n
"
,
(
hdata
->
dvi_mode
?
"dvi monitor"
:
"hdmi monitor"
),
edid
->
width_cm
,
edid
->
height_cm
);
...
...
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