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
f37753e2
Commit
f37753e2
authored
Apr 04, 2017
by
Stephen Boyd
Committed by
Michael Turquette
Apr 12, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'clk-fixes' into clk-next
* clk-fixes: clk: stm32f4: fix: exclude values 0 and 1 for PLLQ
parents
4641d6a5
ef189104
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
drivers/clk/clk-stm32f4.c
drivers/clk/clk-stm32f4.c
+10
-3
No files found.
drivers/clk/clk-stm32f4.c
View file @
f37753e2
...
...
@@ -429,6 +429,13 @@ static const struct clk_div_table pll_divp_table[] = {
{
0
,
2
},
{
1
,
4
},
{
2
,
6
},
{
3
,
8
},
{
0
}
};
static
const
struct
clk_div_table
pll_divq_table
[]
=
{
{
2
,
2
},
{
3
,
3
},
{
4
,
4
},
{
5
,
5
},
{
6
,
6
},
{
7
,
7
},
{
8
,
8
},
{
9
,
9
},
{
10
,
10
},
{
11
,
11
},
{
12
,
12
},
{
13
,
13
},
{
14
,
14
},
{
15
,
15
},
{
0
}
};
static
const
struct
clk_div_table
pll_divr_table
[]
=
{
{
2
,
2
},
{
3
,
3
},
{
4
,
4
},
{
5
,
5
},
{
6
,
6
},
{
7
,
7
},
{
0
}
};
...
...
@@ -496,9 +503,9 @@ struct stm32f4_div_data {
#define MAX_PLL_DIV 3
static
const
struct
stm32f4_div_data
div_data
[
MAX_PLL_DIV
]
=
{
{
16
,
2
,
0
,
pll_divp_table
},
{
24
,
4
,
CLK_DIVIDER_ONE_BASED
,
NULL
},
{
28
,
3
,
0
,
pll_divr_table
},
{
16
,
2
,
0
,
pll_divp_table
},
{
24
,
4
,
0
,
pll_divq_table
},
{
28
,
3
,
0
,
pll_divr_table
},
};
struct
stm32f4_pll_data
{
...
...
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