diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-07-05 21:18:03 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-07-11 02:03:17 -0400 |
commit | ac6b4fd13fab57944f7ebf396719022e0996b6ac (patch) | |
tree | 890f932953b390bf73e0a03199ee6a762dd85d94 /arch/sh/kernel/cpu/sh4a/clock-sh7722.c | |
parent | 23bcc04d0caaa21e0107876a34b4fd50baecddd1 (diff) |
sh: clock-sh7722: add CLKDEV_ICK_ID for cleanup
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/clock-sh7722.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7722.c | 43 |
1 files changed, 11 insertions, 32 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c index e0e80d2bddf7..d39fcfb1917a 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c | |||
@@ -177,6 +177,7 @@ static struct clk mstp_clks[HWBLK_NR] = { | |||
177 | 177 | ||
178 | #define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk } | 178 | #define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk } |
179 | #define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk } | 179 | #define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk } |
180 | #define CLKDEV_ICK_ID(_cid, _did, _clk) { .con_id = _cid, .dev_id = _did, .clk = _clk } | ||
180 | 181 | ||
181 | static struct clk_lookup lookups[] = { | 182 | static struct clk_lookup lookups[] = { |
182 | /* main clocks */ | 183 | /* main clocks */ |
@@ -202,41 +203,19 @@ static struct clk_lookup lookups[] = { | |||
202 | /* MSTP clocks */ | 203 | /* MSTP clocks */ |
203 | CLKDEV_CON_ID("uram0", &mstp_clks[HWBLK_URAM]), | 204 | CLKDEV_CON_ID("uram0", &mstp_clks[HWBLK_URAM]), |
204 | CLKDEV_CON_ID("xymem0", &mstp_clks[HWBLK_XYMEM]), | 205 | CLKDEV_CON_ID("xymem0", &mstp_clks[HWBLK_XYMEM]), |
205 | { | 206 | |
206 | /* TMU0 */ | 207 | CLKDEV_ICK_ID("tmu_fck", "sh_tmu.0", &mstp_clks[HWBLK_TMU]), |
207 | .dev_id = "sh_tmu.0", | 208 | CLKDEV_ICK_ID("tmu_fck", "sh_tmu.1", &mstp_clks[HWBLK_TMU]), |
208 | .con_id = "tmu_fck", | 209 | CLKDEV_ICK_ID("tmu_fck", "sh_tmu.2", &mstp_clks[HWBLK_TMU]), |
209 | .clk = &mstp_clks[HWBLK_TMU], | 210 | |
210 | }, { | ||
211 | /* TMU1 */ | ||
212 | .dev_id = "sh_tmu.1", | ||
213 | .con_id = "tmu_fck", | ||
214 | .clk = &mstp_clks[HWBLK_TMU], | ||
215 | }, { | ||
216 | /* TMU2 */ | ||
217 | .dev_id = "sh_tmu.2", | ||
218 | .con_id = "tmu_fck", | ||
219 | .clk = &mstp_clks[HWBLK_TMU], | ||
220 | }, | ||
221 | CLKDEV_CON_ID("cmt_fck", &mstp_clks[HWBLK_CMT]), | 211 | CLKDEV_CON_ID("cmt_fck", &mstp_clks[HWBLK_CMT]), |
222 | CLKDEV_CON_ID("rwdt0", &mstp_clks[HWBLK_RWDT]), | 212 | CLKDEV_CON_ID("rwdt0", &mstp_clks[HWBLK_RWDT]), |
223 | CLKDEV_CON_ID("flctl0", &mstp_clks[HWBLK_FLCTL]), | 213 | CLKDEV_CON_ID("flctl0", &mstp_clks[HWBLK_FLCTL]), |
224 | { | 214 | |
225 | /* SCIF0 */ | 215 | CLKDEV_ICK_ID("sci_fck", "sh-sci.0", &mstp_clks[HWBLK_SCIF0]), |
226 | .dev_id = "sh-sci.0", | 216 | CLKDEV_ICK_ID("sci_fck", "sh-sci.1", &mstp_clks[HWBLK_SCIF1]), |
227 | .con_id = "sci_fck", | 217 | CLKDEV_ICK_ID("sci_fck", "sh-sci.2", &mstp_clks[HWBLK_SCIF2]), |
228 | .clk = &mstp_clks[HWBLK_SCIF0], | 218 | |
229 | }, { | ||
230 | /* SCIF1 */ | ||
231 | .dev_id = "sh-sci.1", | ||
232 | .con_id = "sci_fck", | ||
233 | .clk = &mstp_clks[HWBLK_SCIF1], | ||
234 | }, { | ||
235 | /* SCIF2 */ | ||
236 | .dev_id = "sh-sci.2", | ||
237 | .con_id = "sci_fck", | ||
238 | .clk = &mstp_clks[HWBLK_SCIF2], | ||
239 | }, | ||
240 | CLKDEV_DEV_ID("i2c-sh_mobile.0", &mstp_clks[HWBLK_IIC]), | 219 | CLKDEV_DEV_ID("i2c-sh_mobile.0", &mstp_clks[HWBLK_IIC]), |
241 | CLKDEV_CON_ID("rtc0", &mstp_clks[HWBLK_RTC]), | 220 | CLKDEV_CON_ID("rtc0", &mstp_clks[HWBLK_RTC]), |
242 | CLKDEV_CON_ID("sdhi0", &mstp_clks[HWBLK_SDHI]), | 221 | CLKDEV_CON_ID("sdhi0", &mstp_clks[HWBLK_SDHI]), |