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
629c1b92
Commit
629c1b92
authored
Jul 08, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nvd0/disp: handle sync polarity, kill off some unknown
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
f3fdc52d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
drivers/gpu/drm/nouveau/nvd0_display.c
drivers/gpu/drm/nouveau/nvd0_display.c
+10
-6
No files found.
drivers/gpu/drm/nouveau/nvd0_display.c
View file @
629c1b92
...
...
@@ -352,11 +352,15 @@ nvd0_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *umode,
u32
vss2be
=
vsyncw
+
vbackp
;
u32
hss2de
=
htotal
-
hfrntp
;
u32
vss2de
=
vtotal
-
vfrntp
;
u32
hstart
=
0
;
u32
vstart
=
0
;
u32
*
push
;
u32
syncs
,
*
push
;
int
ret
;
syncs
=
0x00000001
;
if
(
mode
->
flags
&
DRM_MODE_FLAG_NHSYNC
)
syncs
|=
0x00000008
;
if
(
mode
->
flags
&
DRM_MODE_FLAG_NVSYNC
)
syncs
|=
0x00000010
;
ret
=
nvd0_crtc_swap_fbs
(
crtc
,
old_fb
);
if
(
ret
)
return
ret
;
...
...
@@ -364,7 +368,7 @@ nvd0_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *umode,
push
=
evo_wait
(
crtc
->
dev
,
0
,
64
);
if
(
push
)
{
evo_mthd
(
push
,
0x0410
+
(
nv_crtc
->
index
*
0x300
),
5
);
evo_data
(
push
,
(
vstart
<<
16
)
|
hstart
);
evo_data
(
push
,
0x00000000
);
evo_data
(
push
,
(
vtotal
<<
16
)
|
htotal
);
evo_data
(
push
,
(
vsyncw
<<
16
)
|
hsyncw
);
evo_data
(
push
,
(
vss2be
<<
16
)
|
hss2be
);
...
...
@@ -375,8 +379,8 @@ nvd0_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *umode,
evo_data
(
push
,
mode
->
clock
*
1000
);
evo_data
(
push
,
0x00200000
);
/* ??? */
evo_data
(
push
,
mode
->
clock
*
1000
);
evo_mthd
(
push
,
0x040
8
+
(
nv_crtc
->
index
*
0x300
),
1
);
evo_data
(
push
,
0x31ec6000
);
/* ??? */
evo_mthd
(
push
,
0x040
4
+
(
nv_crtc
->
index
*
0x300
),
1
);
evo_data
(
push
,
syncs
);
evo_kick
(
push
,
crtc
->
dev
,
0
);
}
...
...
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