Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260676
b: refs/heads/master
c: a530257
h: refs/heads/master
v: v3
  • Loading branch information
Jon Hunter authored and Paul Walmsley committed Jul 10, 2011
1 parent 17cfba2 commit bd4d74a
Show file tree
Hide file tree
Showing 22 changed files with 389 additions and 1,038 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: 665d001338b494d6d62810aa99b4c0fa1a0884b9
refs/heads/master: a53025724052b2b1edbc982a4a248784638f563d
27 changes: 3 additions & 24 deletions trunk/arch/arm/mach-omap2/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@

u8 cpu_mask;

/*
* clkdm_control: if true, then when a clock is enabled in the
* hardware, its clockdomain will first be enabled; and when a clock
* is disabled in the hardware, its clockdomain will be disabled
* afterwards.
*/
static bool clkdm_control = true;

/*
* OMAP2+ specific clock functions
*/
Expand Down Expand Up @@ -107,19 +99,6 @@ void omap2_init_clk_clkdm(struct clk *clk)
}
}

/**
* omap2_clk_disable_clkdm_control - disable clkdm control on clk enable/disable
*
* Prevent the OMAP clock code from calling into the clockdomain code
* when a hardware clock in that clockdomain is enabled or disabled.
* Intended to be called at init time from omap*_clk_init(). No
* return value.
*/
void __init omap2_clk_disable_clkdm_control(void)
{
clkdm_control = false;
}

/**
* omap2_clk_dflt_find_companion - find companion clock to @clk
* @clk: struct clk * to find the companion clock of
Expand Down Expand Up @@ -289,7 +268,7 @@ void omap2_clk_disable(struct clk *clk)
clk->ops->disable(clk);
}

if (clkdm_control && clk->clkdm)
if (clk->clkdm)
clkdm_clk_disable(clk->clkdm, clk);

if (clk->parent)
Expand Down Expand Up @@ -329,7 +308,7 @@ int omap2_clk_enable(struct clk *clk)
}
}

if (clkdm_control && clk->clkdm) {
if (clk->clkdm) {
ret = clkdm_clk_enable(clk->clkdm, clk);
if (ret) {
WARN(1, "clock: %s: could not enable clockdomain %s: "
Expand All @@ -351,7 +330,7 @@ int omap2_clk_enable(struct clk *clk)
return 0;

oce_err3:
if (clkdm_control && clk->clkdm)
if (clk->clkdm)
clkdm_clk_disable(clk->clkdm, clk);
oce_err2:
if (clk->parent)
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/arm/mach-omap2/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
#ifndef __ARCH_ARM_MACH_OMAP2_CLOCK_H
#define __ARCH_ARM_MACH_OMAP2_CLOCK_H

#include <linux/kernel.h>

#include <plat/clock.h>

/* CM_CLKSEL2_PLL.CORE_CLK_SRC bits (2XXX) */
Expand Down Expand Up @@ -74,7 +72,6 @@ void omap2_clk_disable_unused(struct clk *clk);
#endif

void omap2_init_clk_clkdm(struct clk *clk);
void __init omap2_clk_disable_clkdm_control(void);

/* clkt_clksel.c public functions */
u32 omap2_clksel_round_rate_div(struct clk *clk, unsigned long target_rate,
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-omap2/clock44xx_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -3212,7 +3212,6 @@ int __init omap4xxx_clk_init(void)
}

clk_init(&omap2_clk_functions);
omap2_clk_disable_clkdm_control();

for (c = omap44xx_clks; c < omap44xx_clks + ARRAY_SIZE(omap44xx_clks);
c++)
Expand Down
Loading

0 comments on commit bd4d74a

Please sign in to comment.