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
6e4b2680
Commit
6e4b2680
authored
Apr 19, 2011
by
Paul Mundt
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'viafb-next' of
git://github.com/schandinat/linux-2.6
into fbdev-fixes-for-linus
parents
9b6d7777
b4ce6a28
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
drivers/video/via/hw.c
drivers/video/via/hw.c
+6
-2
drivers/video/via/viamode.c
drivers/video/via/viamode.c
+1
-1
No files found.
drivers/video/via/hw.c
View file @
6e4b2680
...
@@ -2598,8 +2598,12 @@ int viafb_get_refresh(int hres, int vres, u32 long_refresh)
...
@@ -2598,8 +2598,12 @@ int viafb_get_refresh(int hres, int vres, u32 long_refresh)
best
=
&
vmode
->
crtc
[
i
];
best
=
&
vmode
->
crtc
[
i
];
}
}
if
(
abs
(
best
->
refresh_rate
-
long_refresh
)
>
3
)
if
(
abs
(
best
->
refresh_rate
-
long_refresh
)
>
3
)
{
return
60
;
if
(
hres
==
1200
&&
vres
==
900
)
return
50
;
/* OLPC DCON only supports 50 Hz */
else
return
60
;
}
return
best
->
refresh_rate
;
return
best
->
refresh_rate
;
}
}
...
...
drivers/video/via/viamode.c
View file @
6e4b2680
...
@@ -606,7 +606,7 @@ static struct crt_mode_table CRTM1200x720[] = {
...
@@ -606,7 +606,7 @@ static struct crt_mode_table CRTM1200x720[] = {
/* 1200x900 (DCON) */
/* 1200x900 (DCON) */
static
struct
crt_mode_table
DCON1200x900
[]
=
{
static
struct
crt_mode_table
DCON1200x900
[]
=
{
/* r_rate, hsp, vsp */
/* r_rate, hsp, vsp */
{
REFRESH_
6
0
,
M1200X900_R60_HSP
,
M1200X900_R60_VSP
,
{
REFRESH_
5
0
,
M1200X900_R60_HSP
,
M1200X900_R60_VSP
,
/* The correct htotal is 1240, but this doesn't raster on VX855. */
/* The correct htotal is 1240, but this doesn't raster on VX855. */
/* Via suggested changing to a multiple of 16, hence 1264. */
/* Via suggested changing to a multiple of 16, hence 1264. */
/* HT, HA, HBS, HBE, HSS, HSE, VT, VA, VBS, VBE, VSS, VSE */
/* HT, HA, HBS, HBE, HSS, HSE, VT, VA, VBS, VBE, VSS, VSE */
...
...
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