diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2012-10-30 20:06:55 -0700 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2012-11-08 15:21:30 +0900 |
commit | 9d626eccb1de90a310f3fb9bc5e8803706be1a95 (patch) | |
tree | 3f85ffb397427e040b4d047d53d3d4726852dd0f /include/linux/sh_clk.h | |
parent | 9d69f5b87e7f6df51ad2a70557474093de934a8c (diff) | |
download | lwn-9d626eccb1de90a310f3fb9bc5e8803706be1a95.tar.gz lwn-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.h | 9 |
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 */ |