diff options
Diffstat (limited to 'arch/arm/plat-mxc/clock.c')
| -rw-r--r-- | arch/arm/plat-mxc/clock.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/clock.c b/arch/arm/plat-mxc/clock.c index 2ed3ab173add..5079787273d2 100644 --- a/arch/arm/plat-mxc/clock.c +++ b/arch/arm/plat-mxc/clock.c | |||
| @@ -41,6 +41,7 @@ | |||
| 41 | #include <mach/clock.h> | 41 | #include <mach/clock.h> |
| 42 | #include <mach/hardware.h> | 42 | #include <mach/hardware.h> |
| 43 | 43 | ||
| 44 | #ifndef CONFIG_COMMON_CLK | ||
| 44 | static LIST_HEAD(clocks); | 45 | static LIST_HEAD(clocks); |
| 45 | static DEFINE_MUTEX(clocks_mutex); | 46 | static DEFINE_MUTEX(clocks_mutex); |
| 46 | 47 | ||
| @@ -200,6 +201,16 @@ struct clk *clk_get_parent(struct clk *clk) | |||
| 200 | } | 201 | } |
| 201 | EXPORT_SYMBOL(clk_get_parent); | 202 | EXPORT_SYMBOL(clk_get_parent); |
| 202 | 203 | ||
| 204 | #else | ||
| 205 | |||
| 206 | /* | ||
| 207 | * Lock to protect the clock module (ccm) registers. Used | ||
| 208 | * on all i.MXs | ||
| 209 | */ | ||
| 210 | DEFINE_SPINLOCK(imx_ccm_lock); | ||
| 211 | |||
| 212 | #endif /* CONFIG_COMMON_CLK */ | ||
| 213 | |||
| 203 | /* | 214 | /* |
| 204 | * Get the resulting clock rate from a PLL register value and the input | 215 | * Get the resulting clock rate from a PLL register value and the input |
| 205 | * frequency. PLLs with this register layout can at least be found on | 216 | * frequency. PLLs with this register layout can at least be found on |
