summaryrefslogtreecommitdiffstats
path: root/include/linux/sh_clk.h
diff options
context:
space:
mode:
authorKuninori Morimoto2012-10-31 04:06:55 +0100
committerSimon Horman2012-11-08 07:21:30 +0100
commit9d626eccb1de90a310f3fb9bc5e8803706be1a95 (patch)
tree3f85ffb397427e040b4d047d53d3d4726852dd0f /include/linux/sh_clk.h
parentARM: shmobile: r8a7779: add USB OHCI clock support (diff)
downloadkernel-qcow2-linux-9d626eccb1de90a310f3fb9bc5e8803706be1a95.tar.gz
kernel-qcow2-linux-9d626eccb1de90a310f3fb9bc5e8803706be1a95.tar.xz
kernel-qcow2-linux-9d626eccb1de90a310f3fb9bc5e8803706be1a95.zip
sh: clkfwk: add sh_clk_fsidiv_register()
This patch adds sh_clk_fsidiv_register() to share FSI-DIV clock code Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include/linux/sh_clk.h')
-rw-r--r--include/linux/sh_clk.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/sh_clk.h b/include/linux/sh_clk.h
index 50910913b268..60c72395ec6b 100644
--- a/include/linux/sh_clk.h
+++ b/include/linux/sh_clk.h
@@ -199,4 +199,13 @@ int sh_clk_div6_reparent_register(struct clk *clks, int nr);
#define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk }
#define CLKDEV_ICK_ID(_cid, _did, _clk) { .con_id = _cid, .dev_id = _did, .clk = _clk }
+/* .enable_reg will be updated to .mapping on sh_clk_fsidiv_register() */
+#define SH_CLK_FSIDIV(_reg, _parent) \
+{ \
+ .enable_reg = (void __iomem *)_reg, \
+ .parent = _parent, \
+}
+
+int sh_clk_fsidiv_register(struct clk *clks, int nr);
+
#endif /* __SH_CLOCK_H */