Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191692
b: refs/heads/master
c: 9c352bc
h: refs/heads/master
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed May 13, 2010
1 parent 52f6590 commit 8e7f3a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 38803d7626c3903dea98d23dfe012e98975503f3
refs/heads/master: 9c352bcab7f28e472b06c91d57210b93e08f0fbb
17 changes: 13 additions & 4 deletions trunk/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/err.h>
#include <linux/io.h>
#include <asm/clkdev.h>
#include <asm/clock.h>
#include <asm/freq.h>
#include <asm/io.h>

#define CPG2_FRQCR3 0xfe0a0018

Expand Down Expand Up @@ -45,7 +46,6 @@ static struct clk_ops sh4202_emi_clk_ops = {
};

static struct clk sh4202_emi_clk = {
.name = "emi_clk",
.flags = CLK_ENABLE_ON_INIT,
.ops = &sh4202_emi_clk_ops,
};
Expand All @@ -61,7 +61,6 @@ static struct clk_ops sh4202_femi_clk_ops = {
};

static struct clk sh4202_femi_clk = {
.name = "femi_clk",
.flags = CLK_ENABLE_ON_INIT,
.ops = &sh4202_femi_clk_ops,
};
Expand Down Expand Up @@ -139,7 +138,6 @@ static struct clk_ops sh4202_shoc_clk_ops = {
};

static struct clk sh4202_shoc_clk = {
.name = "shoc_clk",
.flags = CLK_ENABLE_ON_INIT,
.ops = &sh4202_shoc_clk_ops,
};
Expand All @@ -150,6 +148,15 @@ static struct clk *sh4202_onchip_clocks[] = {
&sh4202_shoc_clk,
};

#define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk }

static struct clk_lookup lookups[] = {
/* main clocks */
CLKDEV_CON_ID("emi_clk", &sh4202_emi_clk),
CLKDEV_CON_ID("femi_clk", &sh4202_femi_clk),
CLKDEV_CON_ID("shoc_clk", &sh4202_shoc_clk),
};

int __init arch_clk_init(void)
{
struct clk *clk;
Expand All @@ -167,5 +174,7 @@ int __init arch_clk_init(void)

clk_put(clk);

clkdev_add_table(lookups, ARRAY_SIZE(lookups));

return ret;
}

0 comments on commit 8e7f3a0

Please sign in to comment.