Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192013
b: refs/heads/master
c: 30d5834
h: refs/heads/master
i:
  192011: 726d1ce
v: v3
  • Loading branch information
Thomas Abraham authored and Ben Dooks committed May 13, 2010
1 parent 6b3feb8 commit d9db928
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 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: fb0491146518c24b8ded5f9afa59b1df3749dea9
refs/heads/master: 30d58349608c3a31dbea0cc9238f6d8edc21e299
28 changes: 9 additions & 19 deletions trunk/arch/arm/mach-s5p6440/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,23 +247,13 @@ static struct clk_ops s5p6440_clkarm_ops = {
.round_rate = s5p6440_armclk_round_rate,
};

static unsigned long s5p6440_clk_doutmpll_get_rate(struct clk *clk)
{
unsigned long rate = clk_get_rate(clk->parent);

if (__raw_readl(S5P_CLK_DIV0) & S5P_CLKDIV0_MPLL_MASK)
rate /= 2;

return rate;
}

static struct clk clk_dout_mpll = {
.name = "dout_mpll",
.id = -1,
.parent = &clk_mout_mpll.clk,
.ops = &(struct clk_ops) {
.get_rate = s5p6440_clk_doutmpll_get_rate,
static struct clksrc_clk clk_dout_mpll = {
.clk = {
.name = "dout_mpll",
.id = -1,
.parent = &clk_mout_mpll.clk,
},
.reg_div = { .reg = S5P_CLK_DIV0, .shift = 4, .size = 1 },
};

int s5p6440_clk48m_ctrl(struct clk *clk, int enable)
Expand Down Expand Up @@ -490,7 +480,7 @@ static struct clk clk_pcm_cd = {

static struct clk *clkset_spi_mmc_list[] = {
&clk_mout_epll.clk,
&clk_dout_mpll,
&clk_dout_mpll.clk,
&clk_fin_epll,
};

Expand All @@ -501,7 +491,7 @@ static struct clksrc_sources clkset_spi_mmc = {

static struct clk *clkset_uart_list[] = {
&clk_mout_epll.clk,
&clk_dout_mpll
&clk_dout_mpll.clk,
};

static struct clksrc_sources clkset_uart = {
Expand Down Expand Up @@ -578,6 +568,7 @@ static struct clksrc_clk *sysclks[] = {
&clk_mout_apll,
&clk_mout_epll,
&clk_mout_mpll,
&clk_dout_mpll,
};

void __init_or_cpufreq s5p6440_setup_clocks(void)
Expand Down Expand Up @@ -658,7 +649,6 @@ void __init_or_cpufreq s5p6440_setup_clocks(void)

static struct clk *clks[] __initdata = {
&clk_ext,
&clk_dout_mpll,
&clk_iis_cd_v40,
&clk_pcm_cd,
&clk_p_low,
Expand Down

0 comments on commit d9db928

Please sign in to comment.