Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192015
b: refs/heads/master
c: e4f44f8
h: refs/heads/master
i:
  192013: d9db928
  192011: 726d1ce
  192007: b90c573
  191999: 23a84c0
v: v3
  • Loading branch information
Thomas Abraham authored and Ben Dooks committed May 13, 2010
1 parent debe948 commit 61799ec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 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: 9c72d016e2b556e7d8f739b21404f32333fbc5e4
refs/heads/master: e4f44f82691e927a2f5eb582793454e052b920c7
14 changes: 12 additions & 2 deletions trunk/arch/arm/mach-s5p6440/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,15 @@ static struct clksrc_clk clk_dout_mpll = {
.reg_div = { .reg = S5P_CLK_DIV0, .shift = 4, .size = 1 },
};

static struct clksrc_clk clk_hclk = {
.clk = {
.name = "clk_hclk",
.id = -1,
.parent = &clk_armclk.clk,
},
.reg_div = { .reg = S5P_CLK_DIV0, .shift = 8, .size = 4 },
};

int s5p6440_clk48m_ctrl(struct clk *clk, int enable)
{
unsigned long flags;
Expand Down Expand Up @@ -321,7 +330,7 @@ static struct clk init_clocks_disable[] = {
{
.name = "nand",
.id = -1,
.parent = &clk_h,
.parent = &clk_hclk.clk,
.enable = s5p6440_mem_ctrl,
.ctrlbit = S5P_CLKCON_MEM0_HCLK_NFCON,
}, {
Expand Down Expand Up @@ -580,6 +589,7 @@ static struct clksrc_clk *sysclks[] = {
&clk_mout_mpll,
&clk_dout_mpll,
&clk_armclk,
&clk_hclk,
};

void __init_or_cpufreq s5p6440_setup_clocks(void)
Expand Down Expand Up @@ -628,7 +638,7 @@ void __init_or_cpufreq s5p6440_setup_clocks(void)
print_mhz(apll), print_mhz(mpll), print_mhz(epll));

fclk = clk_get_rate(&clk_armclk.clk);
hclk = fclk / GET_DIV(clkdiv0, S5P_CLKDIV0_HCLK);
hclk = clk_get_rate(&clk_hclk.clk);
pclk = hclk / GET_DIV(clkdiv0, S5P_CLKDIV0_PCLK);

if (__raw_readl(S5P_OTHERS) & S5P_OTHERS_HCLK_LOW_SEL_MPLL) {
Expand Down

0 comments on commit 61799ec

Please sign in to comment.