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
1968a1e9
Commit
1968a1e9
authored
Jun 12, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/gk104/clk: only touch divider for mode we'll be using
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
bc1dfff0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
drivers/gpu/drm/nouveau/core/subdev/clock/nve0.c
drivers/gpu/drm/nouveau/core/subdev/clock/nve0.c
+5
-3
No files found.
drivers/gpu/drm/nouveau/core/subdev/clock/nve0.c
View file @
1968a1e9
...
...
@@ -307,7 +307,6 @@ calc_clk(struct nve0_clock_priv *priv,
info
->
dsrc
=
src0
;
if
(
div0
)
{
info
->
ddiv
|=
0x80000000
;
info
->
ddiv
|=
div0
<<
8
;
info
->
ddiv
|=
div0
;
}
if
(
div1D
)
{
...
...
@@ -352,7 +351,7 @@ nve0_clock_prog_0(struct nve0_clock_priv *priv, int clk)
{
struct
nve0_clock_info
*
info
=
&
priv
->
eng
[
clk
];
if
(
!
info
->
ssel
)
{
nv_mask
(
priv
,
0x1371d0
+
(
clk
*
0x04
),
0x8000
3f
3f
,
info
->
ddiv
);
nv_mask
(
priv
,
0x1371d0
+
(
clk
*
0x04
),
0x8000
00
3f
,
info
->
ddiv
);
nv_wr32
(
priv
,
0x137160
+
(
clk
*
0x04
),
info
->
dsrc
);
}
}
...
...
@@ -389,7 +388,10 @@ static void
nve0_clock_prog_3
(
struct
nve0_clock_priv
*
priv
,
int
clk
)
{
struct
nve0_clock_info
*
info
=
&
priv
->
eng
[
clk
];
nv_mask
(
priv
,
0x137250
+
(
clk
*
0x04
),
0x00003f3f
,
info
->
mdiv
);
if
(
info
->
ssel
)
nv_mask
(
priv
,
0x137250
+
(
clk
*
0x04
),
0x00003f00
,
info
->
mdiv
);
else
nv_mask
(
priv
,
0x137250
+
(
clk
*
0x04
),
0x0000003f
,
info
->
mdiv
);
}
static
void
...
...
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