aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/sh_clk.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/sh_clk.h b/include/linux/sh_clk.h
index 35a04f19fb53..50910913b268 100644
--- a/include/linux/sh_clk.h
+++ b/include/linux/sh_clk.h
@@ -69,6 +69,8 @@ struct clk {
69#define CLK_ENABLE_REG_16BIT BIT(2) 69#define CLK_ENABLE_REG_16BIT BIT(2)
70#define CLK_ENABLE_REG_8BIT BIT(3) 70#define CLK_ENABLE_REG_8BIT BIT(3)
71 71
72#define CLK_MASK_DIV_ON_DISABLE BIT(4)
73
72#define CLK_ENABLE_REG_MASK (CLK_ENABLE_REG_32BIT | \ 74#define CLK_ENABLE_REG_MASK (CLK_ENABLE_REG_32BIT | \
73 CLK_ENABLE_REG_16BIT | \ 75 CLK_ENABLE_REG_16BIT | \
74 CLK_ENABLE_REG_8BIT) 76 CLK_ENABLE_REG_8BIT)
@@ -173,7 +175,7 @@ int sh_clk_div4_reparent_register(struct clk *clks, int nr,
173{ \ 175{ \
174 .enable_reg = (void __iomem *)_reg, \ 176 .enable_reg = (void __iomem *)_reg, \
175 .enable_bit = 0, /* unused */ \ 177 .enable_bit = 0, /* unused */ \
176 .flags = _flags, \ 178 .flags = _flags | CLK_MASK_DIV_ON_DISABLE, \
177 .div_mask = SH_CLK_DIV6_MSK, \ 179 .div_mask = SH_CLK_DIV6_MSK, \
178 .parent_table = _parents, \ 180 .parent_table = _parents, \
179 .parent_num = _num_parents, \ 181 .parent_num = _num_parents, \
@@ -187,7 +189,7 @@ int sh_clk_div4_reparent_register(struct clk *clks, int nr,
187 .enable_reg = (void __iomem *)_reg, \ 189 .enable_reg = (void __iomem *)_reg, \
188 .enable_bit = 0, /* unused */ \ 190 .enable_bit = 0, /* unused */ \
189 .div_mask = SH_CLK_DIV6_MSK, \ 191 .div_mask = SH_CLK_DIV6_MSK, \
190 .flags = _flags, \ 192 .flags = _flags | CLK_MASK_DIV_ON_DISABLE, \
191} 193}
192 194
193int sh_clk_div6_register(struct clk *clks, int nr); 195int sh_clk_div6_register(struct clk *clks, int nr);