diff options
author | Robby Cai <r63905@freescale.com> | 2014-11-13 10:45:23 +0800 |
---|---|---|
committer | Robby Cai <r63905@freescale.com> | 2014-11-13 18:05:30 +0800 |
commit | a8aab7b284968590ac9b2f43c18eec8250be24e0 (patch) | |
tree | bb360f196529837338b948c630bec85d84bba00e /arch | |
parent | dda48258fd4eb197296f077cd51253ef02614a47 (diff) |
MLK-9841-1 clk: imx: add new api imx_clk_gate2_flags
need to call imx_clk_gate2 with specific flags for i.mx6sl CSI case.
we can not just use imx_clk_gate() because clock gating bits 2b'01
seems not work for CSI while 2b'11 works. However imx_clk_gate2()
has the fixed flags which does not fit CSI case.
Signed-off-by: Robby Cai <r63905@freescale.com>
(cherry picked from commit 6ec90260a7431829cd5a7a05c9a0635f0236245e)
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-imx/clk.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/clk.h b/arch/arm/mach-imx/clk.h index f3bc1f7cc367..e58603c6a454 100644 --- a/arch/arm/mach-imx/clk.h +++ b/arch/arm/mach-imx/clk.h @@ -64,6 +64,13 @@ static inline struct clk *imx_clk_gate2(const char *name, const char *parent, reg, shift, 0, &imx_ccm_lock, NULL); } +static inline struct clk *imx_clk_gate2_flags(const char *name, const char *parent, + void __iomem *reg, u8 shift, unsigned long flags) +{ + return clk_register_gate2(NULL, name, parent, + flags, reg, shift, 0, &imx_ccm_lock, NULL); +} + static inline struct clk *imx_clk_gate2_shared(const char *name, const char *parent, void __iomem *reg, u8 shift, unsigned int *share_count) |