提交 b3ab82b3 编写于 作者: M Magnus Damm 提交者: Paul Mundt

sh: use ioread32/iowrite32 and mapped_reg for mstp32

Convert the CPG MSTP32 helper code to use the new mapped_reg
together with ioread32() and iowrite32().
Signed-off-by: NMagnus Damm <damm@opensource.se>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 eda2030a
...@@ -15,15 +15,15 @@ ...@@ -15,15 +15,15 @@
static int sh_clk_mstp32_enable(struct clk *clk) static int sh_clk_mstp32_enable(struct clk *clk)
{ {
__raw_writel(__raw_readl(clk->enable_reg) & ~(1 << clk->enable_bit), iowrite32(ioread32(clk->mapped_reg) & ~(1 << clk->enable_bit),
clk->enable_reg); clk->mapped_reg);
return 0; return 0;
} }
static void sh_clk_mstp32_disable(struct clk *clk) static void sh_clk_mstp32_disable(struct clk *clk)
{ {
__raw_writel(__raw_readl(clk->enable_reg) | (1 << clk->enable_bit), iowrite32(ioread32(clk->mapped_reg) | (1 << clk->enable_bit),
clk->enable_reg); clk->mapped_reg);
} }
static struct clk_ops sh_clk_mstp32_clk_ops = { static struct clk_ops sh_clk_mstp32_clk_ops = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册