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
3036dccf
Commit
3036dccf
authored
Jul 05, 2013
by
Steven Miao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clock: add stmmac clock for ethernet driver
Signed-off-by:
Steven Miao
<
realmz6@gmail.com
>
parent
206f060c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
arch/blackfin/mach-bf609/clock.c
arch/blackfin/mach-bf609/clock.c
+17
-0
No files found.
arch/blackfin/mach-bf609/clock.c
View file @
3036dccf
...
...
@@ -220,6 +220,12 @@ unsigned long sys_clk_get_rate(struct clk *clk)
}
}
unsigned
long
dummy_get_rate
(
struct
clk
*
clk
)
{
clk
->
parent
->
rate
=
clk_get_rate
(
clk
->
parent
);
return
clk
->
parent
->
rate
;
}
unsigned
long
sys_clk_round_rate
(
struct
clk
*
clk
,
unsigned
long
rate
)
{
unsigned
long
max_rate
;
...
...
@@ -283,6 +289,10 @@ static struct clk_ops sys_clk_ops = {
.
round_rate
=
sys_clk_round_rate
,
};
static
struct
clk_ops
dummy_clk_ops
=
{
.
get_rate
=
dummy_get_rate
,
};
static
struct
clk
sys_clkin
=
{
.
name
=
"SYS_CLKIN"
,
.
rate
=
CONFIG_CLKIN_HZ
,
...
...
@@ -364,6 +374,12 @@ static struct clk oclk = {
.
parent
=
&
pll_clk
,
};
static
struct
clk
ethclk
=
{
.
name
=
"stmmaceth"
,
.
parent
=
&
sclk0
,
.
ops
=
&
dummy_clk_ops
,
};
static
struct
clk_lookup
bf609_clks
[]
=
{
CLK
(
sys_clkin
,
NULL
,
"SYS_CLKIN"
),
CLK
(
pll_clk
,
NULL
,
"PLLCLK"
),
...
...
@@ -375,6 +391,7 @@ static struct clk_lookup bf609_clks[] = {
CLK
(
sclk1
,
NULL
,
"SCLK1"
),
CLK
(
dclk
,
NULL
,
"DCLK"
),
CLK
(
oclk
,
NULL
,
"OCLK"
),
CLK
(
ethclk
,
NULL
,
"stmmaceth"
),
};
int
__init
clk_init
(
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