Skip to content

Commit

Permalink
ARM: S5PV310: Should be clk_sclk_apll not clk_mout_apll
Browse files Browse the repository at this point in the history
This patch adds clk_sclk_apll so that fixes on clk_mout_apll.

Signed-off-by: Jongpill Lee <boyko.lee@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Jongpill Lee authored and Kukjin Kim committed Aug 27, 2010
1 parent 4d235f7 commit 3ff3102
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions arch/arm/mach-s5pv310/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ static struct clksrc_clk clk_mout_apll = {
},
.sources = &clk_src_apll,
.reg_src = { .reg = S5P_CLKSRC_CPU, .shift = 0, .size = 1 },
};

static struct clksrc_clk clk_sclk_apll = {
.clk = {
.name = "sclk_apll",
.id = -1,
.parent = &clk_mout_apll.clk,
},
.reg_div = { .reg = S5P_CLKDIV_CPU, .shift = 24, .size = 3 },
};

Expand All @@ -61,7 +69,7 @@ static struct clksrc_clk clk_mout_mpll = {
};

static struct clk *clkset_moutcore_list[] = {
[0] = &clk_mout_apll.clk,
[0] = &clk_sclk_apll.clk,
[1] = &clk_mout_mpll.clk,
};

Expand Down Expand Up @@ -154,7 +162,7 @@ static struct clksrc_clk clk_pclk_dbg = {

static struct clk *clkset_corebus_list[] = {
[0] = &clk_mout_mpll.clk,
[1] = &clk_mout_apll.clk,
[1] = &clk_sclk_apll.clk,
};

static struct clksrc_sources clkset_mout_corebus = {
Expand Down Expand Up @@ -220,7 +228,7 @@ static struct clksrc_clk clk_pclk_acp = {

static struct clk *clkset_aclk_top_list[] = {
[0] = &clk_mout_mpll.clk,
[1] = &clk_mout_apll.clk,
[1] = &clk_sclk_apll.clk,
};

static struct clksrc_sources clkset_aclk_200 = {
Expand Down Expand Up @@ -411,6 +419,7 @@ static struct clksrc_clk clksrcs[] = {
/* Clock initialization code */
static struct clksrc_clk *sysclks[] = {
&clk_mout_apll,
&clk_sclk_apll,
&clk_mout_epll,
&clk_mout_mpll,
&clk_moutcore,
Expand Down

0 comments on commit 3ff3102

Please sign in to comment.