Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192031
b: refs/heads/master
c: 664f5b2
h: refs/heads/master
i:
  192029: cf6daa7
  192027: 21b3950
  192023: 0166560
  192015: 61799ec
  191999: 23a84c0
v: v3
  • Loading branch information
Thomas Abraham authored and Ben Dooks committed May 17, 2010
1 parent e0367d5 commit e6d104f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 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: 6ed91a202b3843d2fec51f00c31e65313ca00906
refs/heads/master: 664f5b2065da188821fe5aa998c6351e8c042d98
22 changes: 16 additions & 6 deletions trunk/arch/arm/mach-s5pv210/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,6 @@ static int s5pv210_clk_ip3_ctrl(struct clk *clk, int enable)
return s5p_gatectrl(S5P_CLKGATE_IP3, clk, enable);
}

static struct clk clk_h100 = {
.name = "hclk100",
.id = -1,
};

static struct clk clk_p83 = {
.name = "pclk83",
.id = -1,
Expand All @@ -171,11 +166,19 @@ static struct clk clk_p66 = {
};

static struct clk *sys_clks[] = {
&clk_h100,
&clk_p83,
&clk_p66
};

static unsigned long s5pv210_clk_imem_get_rate(struct clk *clk)
{
return clk_get_rate(clk->parent) / 2;
}

static struct clk_ops clk_hclk_imem_ops = {
.get_rate = s5pv210_clk_imem_get_rate,
};

static struct clk init_clocks_disable[] = {
{
.name = "rot",
Expand Down Expand Up @@ -326,6 +329,13 @@ static struct clk init_clocks_disable[] = {

static struct clk init_clocks[] = {
{
.name = "hclk_imem",
.id = -1,
.parent = &clk_hclk_msys.clk,
.ctrlbit = (1 << 5),
.enable = s5pv210_clk_ip0_ctrl,
.ops = &clk_hclk_imem_ops,
}, {
.name = "uart",
.id = 0,
.parent = &clk_p66,
Expand Down

0 comments on commit e6d104f

Please sign in to comment.