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
1380da49
Commit
1380da49
authored
Jan 11, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv40: initialise 0x17xx on all chipsets that have it
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
c693931d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
drivers/gpu/drm/nouveau/nv40_mc.c
drivers/gpu/drm/nouveau/nv40_mc.c
+2
-12
No files found.
drivers/gpu/drm/nouveau/nv40_mc.c
View file @
1380da49
...
...
@@ -6,27 +6,17 @@
int
nv40_mc_init
(
struct
drm_device
*
dev
)
{
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
uint32_t
tmp
;
/* Power up everything, resetting each individual unit will
* be done later if needed.
*/
nv_wr32
(
dev
,
NV03_PMC_ENABLE
,
0xFFFFFFFF
);
switch
(
dev_priv
->
chipset
)
{
case
0x44
:
case
0x46
:
/* G72 */
case
0x4e
:
case
0x4c
:
/* C51_G7X */
tmp
=
nv_rd32
(
dev
,
NV04_PFB_FIFO_DATA
);
if
(
nv44_graph_class
(
dev
))
{
u32
tmp
=
nv_rd32
(
dev
,
NV04_PFB_FIFO_DATA
);
nv_wr32
(
dev
,
NV40_PMC_1700
,
tmp
);
nv_wr32
(
dev
,
NV40_PMC_1704
,
0
);
nv_wr32
(
dev
,
NV40_PMC_1708
,
0
);
nv_wr32
(
dev
,
NV40_PMC_170C
,
tmp
);
break
;
default:
break
;
}
return
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