summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/clk.h
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-06-22 17:17:06 +0400
committerShawn Guo <shawn.guo@freescale.com>2014-07-18 16:11:31 +0800
commit652516902810841e0893ac6b09c2d0e85e847d27 (patch)
tree0a4d5bab925f58047d3b924dbb4ef90f78520ca3 /arch/arm/mach-imx/clk.h
parent50b02149825dc89e3a0942f34215907e0e232eaf (diff)
downloadop-kernel-dev-652516902810841e0893ac6b09c2d0e85e847d27.zip
op-kernel-dev-652516902810841e0893ac6b09c2d0e85e847d27.tar.gz
ARM: i.MX21 clk: Clock initialization rework
This patch perform rework i.MX21 clock initialization. This includes adding missing clocks and sort clocks by register address. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Diffstat (limited to 'arch/arm/mach-imx/clk.h')
-rw-r--r--arch/arm/mach-imx/clk.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/clk.h b/arch/arm/mach-imx/clk.h
index 7edb7dc..d5ba76f 100644
--- a/arch/arm/mach-imx/clk.h
+++ b/arch/arm/mach-imx/clk.h
@@ -97,6 +97,13 @@ static inline struct clk *imx_clk_gate(const char *name, const char *parent,
shift, 0, &imx_ccm_lock);
}
+static inline struct clk *imx_clk_gate_dis(const char *name, const char *parent,
+ void __iomem *reg, u8 shift)
+{
+ return clk_register_gate(NULL, name, parent, CLK_SET_RATE_PARENT, reg,
+ shift, CLK_GATE_SET_TO_DISABLE, &imx_ccm_lock);
+}
+
static inline struct clk *imx_clk_mux(const char *name, void __iomem *reg,
u8 shift, u8 width, const char **parents, int num_parents)
{
OpenPOWER on IntegriCloud