path: root/drivers/clk/imx/clk.h
diff options
authorSascha Hauer <>2017-02-02 10:40:37 +0100
committerSascha Hauer <>2017-02-06 07:40:23 +0100
commit23aa31a6d25408f88ec530347534adb498a32761 (patch)
tree47a54d743ad71d6aaa6ca5c438495aaf5aa5396d /drivers/clk/imx/clk.h
parent2225c194edc1e2f71c0d8dc1c0c3b936d241060a (diff)
clk: i.MX7: Fix ethernet clocks
The original clock code from Linux registers some gates at base + 0x44e0, 0x44f0, 0x4500, 0x4510. These are not in the reference manual and do not seem to have any effect on the hardware. The reference manual lists clocks at 0x4700 and 0x4710 which Linux does not control at all. These clocks really do have an effect on the hardware and are needed for ethernet support. Register the existing clocks rather than the made up clocks to support ethernet. Signed-off-by: Sascha Hauer <>
Diffstat (limited to 'drivers/clk/imx/clk.h')
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h
index 019114848..8da806403 100644
--- a/drivers/clk/imx/clk.h
+++ b/drivers/clk/imx/clk.h
@@ -98,6 +98,12 @@ static inline struct clk *imx_clk_gate4(const char *name, const char *parent,
return clk_gate2(name, parent, reg, shift, 0x3, CLK_OPS_PARENT_ENABLE);
+static inline struct clk *imx_clk_gate_shared(const char *name, const char *parent,
+ const char *shared)
+ return clk_gate_shared(name, parent, shared, CLK_SET_RATE_PARENT);
struct clk *imx_clk_pllv1(const char *name, const char *parent,
void __iomem *base);