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
ab77214a
Commit
ab77214a
authored
Aug 14, 2012
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv50/disp: copy caps to evo
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
70cabe4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
2 deletions
+40
-2
drivers/gpu/drm/nouveau/core/engine/disp/nv50.c
drivers/gpu/drm/nouveau/core/engine/disp/nv50.c
+40
-2
No files found.
drivers/gpu/drm/nouveau/core/engine/disp/nv50.c
View file @
ab77214a
...
...
@@ -249,14 +249,52 @@ nv50_disp_base_dtor(struct nouveau_object *object)
static
int
nv50_disp_base_init
(
struct
nouveau_object
*
object
)
{
struct
nv50_disp_priv
*
priv
=
(
void
*
)
object
->
engine
;
struct
nv50_disp_base
*
base
=
(
void
*
)
object
;
int
ret
;
int
ret
,
i
;
u32
tmp
;
ret
=
nouveau_parent_init
(
&
base
->
base
);
if
(
ret
)
return
ret
;
/* caps */
/* The below segments of code copying values from one register to
* another appear to inform EVO of the display capabilities or
* something similar. NFI what the 0x614004 caps are for..
*/
tmp
=
nv_rd32
(
priv
,
0x614004
);
nv_wr32
(
priv
,
0x610184
,
tmp
);
/* ... CRTC caps */
for
(
i
=
0
;
i
<
priv
->
head
.
nr
;
i
++
)
{
tmp
=
nv_rd32
(
priv
,
0x616100
+
(
i
*
0x800
));
nv_wr32
(
priv
,
0x610190
+
(
i
*
0x10
),
tmp
);
tmp
=
nv_rd32
(
priv
,
0x616104
+
(
i
*
0x800
));
nv_wr32
(
priv
,
0x610194
+
(
i
*
0x10
),
tmp
);
tmp
=
nv_rd32
(
priv
,
0x616108
+
(
i
*
0x800
));
nv_wr32
(
priv
,
0x610198
+
(
i
*
0x10
),
tmp
);
tmp
=
nv_rd32
(
priv
,
0x61610c
+
(
i
*
0x800
));
nv_wr32
(
priv
,
0x61019c
+
(
i
*
0x10
),
tmp
);
}
/* ... DAC caps */
for
(
i
=
0
;
i
<
priv
->
dac
.
nr
;
i
++
)
{
tmp
=
nv_rd32
(
priv
,
0x61a000
+
(
i
*
0x800
));
nv_wr32
(
priv
,
0x6101d0
+
(
i
*
0x04
),
tmp
);
}
/* ... SOR caps */
for
(
i
=
0
;
i
<
priv
->
sor
.
nr
;
i
++
)
{
tmp
=
nv_rd32
(
priv
,
0x61c000
+
(
i
*
0x800
));
nv_wr32
(
priv
,
0x6101e0
+
(
i
*
0x04
),
tmp
);
}
/* ... EXT caps */
for
(
i
=
0
;
i
<
3
;
i
++
)
{
tmp
=
nv_rd32
(
priv
,
0x61e000
+
(
i
*
0x800
));
nv_wr32
(
priv
,
0x6101f0
+
(
i
*
0x04
),
tmp
);
}
/* intr 100 */
/* 6194e8 shit */
/* intr */
...
...
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