diff options
-rw-r--r-- | arch/sh/include/asm/clock.h | 15 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7343.c | 20 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7366.c | 20 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7722.c | 22 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7723.c | 22 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7724.c | 14 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7785.c | 20 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7786.c | 16 |
8 files changed, 74 insertions, 75 deletions
diff --git a/arch/sh/include/asm/clock.h b/arch/sh/include/asm/clock.h index c52882c1a468..f6b0bfd4e191 100644 --- a/arch/sh/include/asm/clock.h +++ b/arch/sh/include/asm/clock.h | |||
@@ -126,14 +126,13 @@ int clk_rate_table_find(struct clk *clk, | |||
126 | 126 | ||
127 | int sh_clk_mstp32_register(struct clk *clks, int nr); | 127 | int sh_clk_mstp32_register(struct clk *clks, int nr); |
128 | 128 | ||
129 | #define SH_CLK_DIV4(_name, _parent, _reg, _shift, _div_bitmap, _flags) \ | 129 | #define SH_CLK_DIV4(_parent, _reg, _shift, _div_bitmap, _flags) \ |
130 | { \ | 130 | { \ |
131 | .name = _name, \ | 131 | .parent = _parent, \ |
132 | .parent = _parent, \ | 132 | .enable_reg = (void __iomem *)_reg, \ |
133 | .enable_reg = (void __iomem *)_reg, \ | 133 | .enable_bit = _shift, \ |
134 | .enable_bit = _shift, \ | 134 | .arch_flags = _div_bitmap, \ |
135 | .arch_flags = _div_bitmap, \ | 135 | .flags = _flags, \ |
136 | .flags = _flags, \ | ||
137 | } | 136 | } |
138 | 137 | ||
139 | struct clk_div4_table { | 138 | struct clk_div4_table { |
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7343.c b/arch/sh/kernel/cpu/sh4a/clock-sh7343.c index c123b55fb45b..e2e8cc278044 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7343.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7343.c | |||
@@ -122,18 +122,18 @@ static struct clk_div4_table div4_table = { | |||
122 | enum { DIV4_I, DIV4_U, DIV4_SH, DIV4_B, DIV4_B3, DIV4_P, | 122 | enum { DIV4_I, DIV4_U, DIV4_SH, DIV4_B, DIV4_B3, DIV4_P, |
123 | DIV4_SIUA, DIV4_SIUB, DIV4_NR }; | 123 | DIV4_SIUA, DIV4_SIUB, DIV4_NR }; |
124 | 124 | ||
125 | #define DIV4(_str, _reg, _bit, _mask, _flags) \ | 125 | #define DIV4(_reg, _bit, _mask, _flags) \ |
126 | SH_CLK_DIV4(_str, &pll_clk, _reg, _bit, _mask, _flags) | 126 | SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags) |
127 | 127 | ||
128 | struct clk div4_clks[DIV4_NR] = { | 128 | struct clk div4_clks[DIV4_NR] = { |
129 | [DIV4_I] = DIV4("cpu_clk", FRQCR, 20, 0x1fff, CLK_ENABLE_ON_INIT), | 129 | [DIV4_I] = DIV4(FRQCR, 20, 0x1fff, CLK_ENABLE_ON_INIT), |
130 | [DIV4_U] = DIV4("umem_clk", FRQCR, 16, 0x1fff, CLK_ENABLE_ON_INIT), | 130 | [DIV4_U] = DIV4(FRQCR, 16, 0x1fff, CLK_ENABLE_ON_INIT), |
131 | [DIV4_SH] = DIV4("shyway_clk", FRQCR, 12, 0x1fff, CLK_ENABLE_ON_INIT), | 131 | [DIV4_SH] = DIV4(FRQCR, 12, 0x1fff, CLK_ENABLE_ON_INIT), |
132 | [DIV4_B] = DIV4("bus_clk", FRQCR, 8, 0x1fff, CLK_ENABLE_ON_INIT), | 132 | [DIV4_B] = DIV4(FRQCR, 8, 0x1fff, CLK_ENABLE_ON_INIT), |
133 | [DIV4_B3] = DIV4("b3_clk", FRQCR, 4, 0x1fff, CLK_ENABLE_ON_INIT), | 133 | [DIV4_B3] = DIV4(FRQCR, 4, 0x1fff, CLK_ENABLE_ON_INIT), |
134 | [DIV4_P] = DIV4("peripheral_clk", FRQCR, 0, 0x1fff, 0), | 134 | [DIV4_P] = DIV4(FRQCR, 0, 0x1fff, 0), |
135 | [DIV4_SIUA] = DIV4("siua_clk", SCLKACR, 0, 0x1fff, 0), | 135 | [DIV4_SIUA] = DIV4(SCLKACR, 0, 0x1fff, 0), |
136 | [DIV4_SIUB] = DIV4("siub_clk", SCLKBCR, 0, 0x1fff, 0), | 136 | [DIV4_SIUB] = DIV4(SCLKBCR, 0, 0x1fff, 0), |
137 | }; | 137 | }; |
138 | 138 | ||
139 | enum { DIV6_V, DIV6_NR }; | 139 | enum { DIV6_V, DIV6_NR }; |
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7366.c b/arch/sh/kernel/cpu/sh4a/clock-sh7366.c index 35290b8be2a7..4c3a5a583012 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7366.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7366.c | |||
@@ -125,18 +125,18 @@ static struct clk_div4_table div4_table = { | |||
125 | enum { DIV4_I, DIV4_U, DIV4_SH, DIV4_B, DIV4_B3, DIV4_P, | 125 | enum { DIV4_I, DIV4_U, DIV4_SH, DIV4_B, DIV4_B3, DIV4_P, |
126 | DIV4_SIUA, DIV4_SIUB, DIV4_NR }; | 126 | DIV4_SIUA, DIV4_SIUB, DIV4_NR }; |
127 | 127 | ||
128 | #define DIV4(_str, _reg, _bit, _mask, _flags) \ | 128 | #define DIV4(_reg, _bit, _mask, _flags) \ |
129 | SH_CLK_DIV4(_str, &pll_clk, _reg, _bit, _mask, _flags) | 129 | SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags) |
130 | 130 | ||
131 | struct clk div4_clks[DIV4_NR] = { | 131 | struct clk div4_clks[DIV4_NR] = { |
132 | [DIV4_I] = DIV4("cpu_clk", FRQCR, 20, 0x1fef, CLK_ENABLE_ON_INIT), | 132 | [DIV4_I] = DIV4(FRQCR, 20, 0x1fef, CLK_ENABLE_ON_INIT), |
133 | [DIV4_U] = DIV4("umem_clk", FRQCR, 16, 0x1fff, CLK_ENABLE_ON_INIT), | 133 | [DIV4_U] = DIV4(FRQCR, 16, 0x1fff, CLK_ENABLE_ON_INIT), |
134 | [DIV4_SH] = DIV4("shyway_clk", FRQCR, 12, 0x1fff, CLK_ENABLE_ON_INIT), | 134 | [DIV4_SH] = DIV4(FRQCR, 12, 0x1fff, CLK_ENABLE_ON_INIT), |
135 | [DIV4_B] = DIV4("bus_clk", FRQCR, 8, 0x1fff, CLK_ENABLE_ON_INIT), | 135 | [DIV4_B] = DIV4(FRQCR, 8, 0x1fff, CLK_ENABLE_ON_INIT), |
136 | [DIV4_B3] = DIV4("b3_clk", FRQCR, 4, 0x1fff, CLK_ENABLE_ON_INIT), | 136 | [DIV4_B3] = DIV4(FRQCR, 4, 0x1fff, CLK_ENABLE_ON_INIT), |
137 | [DIV4_P] = DIV4("peripheral_clk", FRQCR, 0, 0x1fff, 0), | 137 | [DIV4_P] = DIV4(FRQCR, 0, 0x1fff, 0), |
138 | [DIV4_SIUA] = DIV4("siua_clk", SCLKACR, 0, 0x1fff, 0), | 138 | [DIV4_SIUA] = DIV4(SCLKACR, 0, 0x1fff, 0), |
139 | [DIV4_SIUB] = DIV4("siub_clk", SCLKBCR, 0, 0x1fff, 0), | 139 | [DIV4_SIUB] = DIV4(SCLKBCR, 0, 0x1fff, 0), |
140 | }; | 140 | }; |
141 | 141 | ||
142 | enum { DIV6_V, DIV6_NR }; | 142 | enum { DIV6_V, DIV6_NR }; |
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c index 6ad3bc22933f..2d811d975ca8 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c | |||
@@ -122,31 +122,31 @@ static struct clk_div4_table div4_table = { | |||
122 | .div_mult_table = &div4_div_mult_table, | 122 | .div_mult_table = &div4_div_mult_table, |
123 | }; | 123 | }; |
124 | 124 | ||
125 | #define DIV4(_str, _reg, _bit, _mask, _flags) \ | 125 | #define DIV4(_reg, _bit, _mask, _flags) \ |
126 | SH_CLK_DIV4(_str, &pll_clk, _reg, _bit, _mask, _flags) | 126 | SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags) |
127 | 127 | ||
128 | enum { DIV4_I, DIV4_U, DIV4_SH, DIV4_B, DIV4_B3, DIV4_P, DIV4_NR }; | 128 | enum { DIV4_I, DIV4_U, DIV4_SH, DIV4_B, DIV4_B3, DIV4_P, DIV4_NR }; |
129 | 129 | ||
130 | struct clk div4_clks[DIV4_NR] = { | 130 | struct clk div4_clks[DIV4_NR] = { |
131 | [DIV4_I] = DIV4("cpu_clk", FRQCR, 20, 0x1fef, CLK_ENABLE_ON_INIT), | 131 | [DIV4_I] = DIV4(FRQCR, 20, 0x1fef, CLK_ENABLE_ON_INIT), |
132 | [DIV4_U] = DIV4("umem_clk", FRQCR, 16, 0x1fff, CLK_ENABLE_ON_INIT), | 132 | [DIV4_U] = DIV4(FRQCR, 16, 0x1fff, CLK_ENABLE_ON_INIT), |
133 | [DIV4_SH] = DIV4("shyway_clk", FRQCR, 12, 0x1fff, CLK_ENABLE_ON_INIT), | 133 | [DIV4_SH] = DIV4(FRQCR, 12, 0x1fff, CLK_ENABLE_ON_INIT), |
134 | [DIV4_B] = DIV4("bus_clk", FRQCR, 8, 0x1fff, CLK_ENABLE_ON_INIT), | 134 | [DIV4_B] = DIV4(FRQCR, 8, 0x1fff, CLK_ENABLE_ON_INIT), |
135 | [DIV4_B3] = DIV4("b3_clk", FRQCR, 4, 0x1fff, CLK_ENABLE_ON_INIT), | 135 | [DIV4_B3] = DIV4(FRQCR, 4, 0x1fff, CLK_ENABLE_ON_INIT), |
136 | [DIV4_P] = DIV4("peripheral_clk", FRQCR, 0, 0x1fff, 0), | 136 | [DIV4_P] = DIV4(FRQCR, 0, 0x1fff, 0), |
137 | }; | 137 | }; |
138 | 138 | ||
139 | enum { DIV4_IRDA, DIV4_ENABLE_NR }; | 139 | enum { DIV4_IRDA, DIV4_ENABLE_NR }; |
140 | 140 | ||
141 | struct clk div4_enable_clks[DIV4_ENABLE_NR] = { | 141 | struct clk div4_enable_clks[DIV4_ENABLE_NR] = { |
142 | [DIV4_IRDA] = DIV4("irda_clk", IRDACLKCR, 0, 0x1fff, 0), | 142 | [DIV4_IRDA] = DIV4(IRDACLKCR, 0, 0x1fff, 0), |
143 | }; | 143 | }; |
144 | 144 | ||
145 | enum { DIV4_SIUA, DIV4_SIUB, DIV4_REPARENT_NR }; | 145 | enum { DIV4_SIUA, DIV4_SIUB, DIV4_REPARENT_NR }; |
146 | 146 | ||
147 | struct clk div4_reparent_clks[DIV4_REPARENT_NR] = { | 147 | struct clk div4_reparent_clks[DIV4_REPARENT_NR] = { |
148 | [DIV4_SIUA] = DIV4("siua_clk", SCLKACR, 0, 0x1fff, 0), | 148 | [DIV4_SIUA] = DIV4(SCLKACR, 0, 0x1fff, 0), |
149 | [DIV4_SIUB] = DIV4("siub_clk", SCLKBCR, 0, 0x1fff, 0), | 149 | [DIV4_SIUB] = DIV4(SCLKBCR, 0, 0x1fff, 0), |
150 | }; | 150 | }; |
151 | 151 | ||
152 | enum { DIV6_V, DIV6_NR }; | 152 | enum { DIV6_V, DIV6_NR }; |
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7723.c b/arch/sh/kernel/cpu/sh4a/clock-sh7723.c index 05b112dedd1a..7685504369cc 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7723.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7723.c | |||
@@ -125,29 +125,29 @@ static struct clk_div4_table div4_table = { | |||
125 | 125 | ||
126 | enum { DIV4_I, DIV4_U, DIV4_SH, DIV4_B, DIV4_B3, DIV4_P, DIV4_NR }; | 126 | enum { DIV4_I, DIV4_U, DIV4_SH, DIV4_B, DIV4_B3, DIV4_P, DIV4_NR }; |
127 | 127 | ||
128 | #define DIV4(_str, _reg, _bit, _mask, _flags) \ | 128 | #define DIV4(_reg, _bit, _mask, _flags) \ |
129 | SH_CLK_DIV4(_str, &pll_clk, _reg, _bit, _mask, _flags) | 129 | SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags) |
130 | 130 | ||
131 | struct clk div4_clks[DIV4_NR] = { | 131 | struct clk div4_clks[DIV4_NR] = { |
132 | [DIV4_I] = DIV4("cpu_clk", FRQCR, 20, 0x0dbf, CLK_ENABLE_ON_INIT), | 132 | [DIV4_I] = DIV4(FRQCR, 20, 0x0dbf, CLK_ENABLE_ON_INIT), |
133 | [DIV4_U] = DIV4("umem_clk", FRQCR, 16, 0x0dbf, CLK_ENABLE_ON_INIT), | 133 | [DIV4_U] = DIV4(FRQCR, 16, 0x0dbf, CLK_ENABLE_ON_INIT), |
134 | [DIV4_SH] = DIV4("shyway_clk", FRQCR, 12, 0x0dbf, CLK_ENABLE_ON_INIT), | 134 | [DIV4_SH] = DIV4(FRQCR, 12, 0x0dbf, CLK_ENABLE_ON_INIT), |
135 | [DIV4_B] = DIV4("bus_clk", FRQCR, 8, 0x0dbf, CLK_ENABLE_ON_INIT), | 135 | [DIV4_B] = DIV4(FRQCR, 8, 0x0dbf, CLK_ENABLE_ON_INIT), |
136 | [DIV4_B3] = DIV4("b3_clk", FRQCR, 4, 0x0db4, CLK_ENABLE_ON_INIT), | 136 | [DIV4_B3] = DIV4(FRQCR, 4, 0x0db4, CLK_ENABLE_ON_INIT), |
137 | [DIV4_P] = DIV4("peripheral_clk", FRQCR, 0, 0x0dbf, 0), | 137 | [DIV4_P] = DIV4(FRQCR, 0, 0x0dbf, 0), |
138 | }; | 138 | }; |
139 | 139 | ||
140 | enum { DIV4_IRDA, DIV4_ENABLE_NR }; | 140 | enum { DIV4_IRDA, DIV4_ENABLE_NR }; |
141 | 141 | ||
142 | struct clk div4_enable_clks[DIV4_ENABLE_NR] = { | 142 | struct clk div4_enable_clks[DIV4_ENABLE_NR] = { |
143 | [DIV4_IRDA] = DIV4("irda_clk", IRDACLKCR, 0, 0x0dbf, 0), | 143 | [DIV4_IRDA] = DIV4(IRDACLKCR, 0, 0x0dbf, 0), |
144 | }; | 144 | }; |
145 | 145 | ||
146 | enum { DIV4_SIUA, DIV4_SIUB, DIV4_REPARENT_NR }; | 146 | enum { DIV4_SIUA, DIV4_SIUB, DIV4_REPARENT_NR }; |
147 | 147 | ||
148 | struct clk div4_reparent_clks[DIV4_REPARENT_NR] = { | 148 | struct clk div4_reparent_clks[DIV4_REPARENT_NR] = { |
149 | [DIV4_SIUA] = DIV4("siua_clk", SCLKACR, 0, 0x0dbf, 0), | 149 | [DIV4_SIUA] = DIV4(SCLKACR, 0, 0x0dbf, 0), |
150 | [DIV4_SIUB] = DIV4("siub_clk", SCLKBCR, 0, 0x0dbf, 0), | 150 | [DIV4_SIUB] = DIV4(SCLKBCR, 0, 0x0dbf, 0), |
151 | }; | 151 | }; |
152 | enum { DIV6_V, DIV6_NR }; | 152 | enum { DIV6_V, DIV6_NR }; |
153 | 153 | ||
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7724.c b/arch/sh/kernel/cpu/sh4a/clock-sh7724.c index b9ed211dae79..6095f50fca8a 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7724.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7724.c | |||
@@ -153,15 +153,15 @@ static struct clk_div4_table div4_table = { | |||
153 | 153 | ||
154 | enum { DIV4_I, DIV4_SH, DIV4_B, DIV4_P, DIV4_M1, DIV4_NR }; | 154 | enum { DIV4_I, DIV4_SH, DIV4_B, DIV4_P, DIV4_M1, DIV4_NR }; |
155 | 155 | ||
156 | #define DIV4(_str, _reg, _bit, _mask, _flags) \ | 156 | #define DIV4(_reg, _bit, _mask, _flags) \ |
157 | SH_CLK_DIV4(_str, &pll_clk, _reg, _bit, _mask, _flags) | 157 | SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags) |
158 | 158 | ||
159 | struct clk div4_clks[DIV4_NR] = { | 159 | struct clk div4_clks[DIV4_NR] = { |
160 | [DIV4_I] = DIV4("cpu_clk", FRQCRA, 20, 0x2f7d, CLK_ENABLE_ON_INIT), | 160 | [DIV4_I] = DIV4(FRQCRA, 20, 0x2f7d, CLK_ENABLE_ON_INIT), |
161 | [DIV4_SH] = DIV4("shyway_clk", FRQCRA, 12, 0x2f7c, CLK_ENABLE_ON_INIT), | 161 | [DIV4_SH] = DIV4(FRQCRA, 12, 0x2f7c, CLK_ENABLE_ON_INIT), |
162 | [DIV4_B] = DIV4("bus_clk", FRQCRA, 8, 0x2f7c, CLK_ENABLE_ON_INIT), | 162 | [DIV4_B] = DIV4(FRQCRA, 8, 0x2f7c, CLK_ENABLE_ON_INIT), |
163 | [DIV4_P] = DIV4("peripheral_clk", FRQCRA, 0, 0x2f7c, 0), | 163 | [DIV4_P] = DIV4(FRQCRA, 0, 0x2f7c, 0), |
164 | [DIV4_M1] = DIV4("vpu_clk", FRQCRB, 4, 0x2f7c, CLK_ENABLE_ON_INIT), | 164 | [DIV4_M1] = DIV4(FRQCRB, 4, 0x2f7c, CLK_ENABLE_ON_INIT), |
165 | }; | 165 | }; |
166 | 166 | ||
167 | enum { DIV6_V, DIV6_FA, DIV6_FB, DIV6_I, DIV6_S, DIV6_NR }; | 167 | enum { DIV6_V, DIV6_FA, DIV6_FB, DIV6_I, DIV6_S, DIV6_NR }; |
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7785.c b/arch/sh/kernel/cpu/sh4a/clock-sh7785.c index 0a44be96c038..a7a8eecfbda4 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7785.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7785.c | |||
@@ -70,18 +70,18 @@ static struct clk_div4_table div4_table = { | |||
70 | enum { DIV4_I, DIV4_U, DIV4_SH, DIV4_B, DIV4_DDR, DIV4_GA, | 70 | enum { DIV4_I, DIV4_U, DIV4_SH, DIV4_B, DIV4_DDR, DIV4_GA, |
71 | DIV4_DU, DIV4_P, DIV4_NR }; | 71 | DIV4_DU, DIV4_P, DIV4_NR }; |
72 | 72 | ||
73 | #define DIV4(_str, _bit, _mask, _flags) \ | 73 | #define DIV4(_bit, _mask, _flags) \ |
74 | SH_CLK_DIV4(_str, &pll_clk, FRQMR1, _bit, _mask, _flags) | 74 | SH_CLK_DIV4(&pll_clk, FRQMR1, _bit, _mask, _flags) |
75 | 75 | ||
76 | struct clk div4_clks[DIV4_NR] = { | 76 | struct clk div4_clks[DIV4_NR] = { |
77 | [DIV4_P] = DIV4("peripheral_clk", 0, 0x0f80, 0), | 77 | [DIV4_P] = DIV4(0, 0x0f80, 0), |
78 | [DIV4_DU] = DIV4("du_clk", 4, 0x0ff0, 0), | 78 | [DIV4_DU] = DIV4(4, 0x0ff0, 0), |
79 | [DIV4_GA] = DIV4("ga_clk", 8, 0x0030, 0), | 79 | [DIV4_GA] = DIV4(8, 0x0030, 0), |
80 | [DIV4_DDR] = DIV4("ddr_clk", 12, 0x000c, CLK_ENABLE_ON_INIT), | 80 | [DIV4_DDR] = DIV4(12, 0x000c, CLK_ENABLE_ON_INIT), |
81 | [DIV4_B] = DIV4("bus_clk", 16, 0x0fe0, CLK_ENABLE_ON_INIT), | 81 | [DIV4_B] = DIV4(16, 0x0fe0, CLK_ENABLE_ON_INIT), |
82 | [DIV4_SH] = DIV4("shyway_clk", 20, 0x000c, CLK_ENABLE_ON_INIT), | 82 | [DIV4_SH] = DIV4(20, 0x000c, CLK_ENABLE_ON_INIT), |
83 | [DIV4_U] = DIV4("umem_clk", 24, 0x000c, CLK_ENABLE_ON_INIT), | 83 | [DIV4_U] = DIV4(24, 0x000c, CLK_ENABLE_ON_INIT), |
84 | [DIV4_I] = DIV4("cpu_clk", 28, 0x000e, CLK_ENABLE_ON_INIT), | 84 | [DIV4_I] = DIV4(28, 0x000e, CLK_ENABLE_ON_INIT), |
85 | }; | 85 | }; |
86 | 86 | ||
87 | #define MSTPCR0 0xffc80030 | 87 | #define MSTPCR0 0xffc80030 |
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7786.c b/arch/sh/kernel/cpu/sh4a/clock-sh7786.c index f00b89f86a24..3ce3b5a69525 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7786.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7786.c | |||
@@ -72,16 +72,16 @@ static struct clk_div4_table div4_table = { | |||
72 | 72 | ||
73 | enum { DIV4_I, DIV4_SH, DIV4_B, DIV4_DDR, DIV4_DU, DIV4_P, DIV4_NR }; | 73 | enum { DIV4_I, DIV4_SH, DIV4_B, DIV4_DDR, DIV4_DU, DIV4_P, DIV4_NR }; |
74 | 74 | ||
75 | #define DIV4(_str, _bit, _mask, _flags) \ | 75 | #define DIV4(_bit, _mask, _flags) \ |
76 | SH_CLK_DIV4(_str, &pll_clk, FRQMR1, _bit, _mask, _flags) | 76 | SH_CLK_DIV4(&pll_clk, FRQMR1, _bit, _mask, _flags) |
77 | 77 | ||
78 | struct clk div4_clks[DIV4_NR] = { | 78 | struct clk div4_clks[DIV4_NR] = { |
79 | [DIV4_P] = DIV4("peripheral_clk", 0, 0x0b40, 0), | 79 | [DIV4_P] = DIV4(0, 0x0b40, 0), |
80 | [DIV4_DU] = DIV4("du_clk", 4, 0x0010, 0), | 80 | [DIV4_DU] = DIV4(4, 0x0010, 0), |
81 | [DIV4_DDR] = DIV4("ddr_clk", 12, 0x0002, CLK_ENABLE_ON_INIT), | 81 | [DIV4_DDR] = DIV4(12, 0x0002, CLK_ENABLE_ON_INIT), |
82 | [DIV4_B] = DIV4("bus_clk", 16, 0x0360, CLK_ENABLE_ON_INIT), | 82 | [DIV4_B] = DIV4(16, 0x0360, CLK_ENABLE_ON_INIT), |
83 | [DIV4_SH] = DIV4("shyway_clk", 20, 0x0002, CLK_ENABLE_ON_INIT), | 83 | [DIV4_SH] = DIV4(20, 0x0002, CLK_ENABLE_ON_INIT), |
84 | [DIV4_I] = DIV4("cpu_clk", 28, 0x0006, CLK_ENABLE_ON_INIT), | 84 | [DIV4_I] = DIV4(28, 0x0006, CLK_ENABLE_ON_INIT), |
85 | }; | 85 | }; |
86 | 86 | ||
87 | #define MSTPCR0 0xffc40030 | 87 | #define MSTPCR0 0xffc40030 |