diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-07-05 21:18:12 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-07-11 02:03:22 -0400 |
commit | 074fcdfff6c45e7ccb24cbc9fc229805d451e7e6 (patch) | |
tree | e2c8474b4a3ab2b8a6bd1883058b5ef44144854a /arch/sh | |
parent | ac6b4fd13fab57944f7ebf396719022e0996b6ac (diff) |
sh: clock-sh7343: 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')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7343.c | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7343.c b/arch/sh/kernel/cpu/sh4a/clock-sh7343.c index a6d134857ec1..16e151f2d769 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7343.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7343.c | |||
@@ -196,6 +196,7 @@ static struct clk mstp_clks[MSTP_NR] = { | |||
196 | 196 | ||
197 | #define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk } | 197 | #define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk } |
198 | #define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk } | 198 | #define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk } |
199 | #define CLKDEV_ICK_ID(_cid, _did, _clk) { .con_id = _cid, .dev_id = _did, .clk = _clk } | ||
199 | 200 | ||
200 | static struct clk_lookup lookups[] = { | 201 | static struct clk_lookup lookups[] = { |
201 | /* main clocks */ | 202 | /* main clocks */ |
@@ -234,27 +235,12 @@ static struct clk_lookup lookups[] = { | |||
234 | CLKDEV_CON_ID("rwdt0", &mstp_clks[MSTP013]), | 235 | CLKDEV_CON_ID("rwdt0", &mstp_clks[MSTP013]), |
235 | CLKDEV_CON_ID("mfi0", &mstp_clks[MSTP011]), | 236 | CLKDEV_CON_ID("mfi0", &mstp_clks[MSTP011]), |
236 | CLKDEV_CON_ID("flctl0", &mstp_clks[MSTP010]), | 237 | CLKDEV_CON_ID("flctl0", &mstp_clks[MSTP010]), |
237 | { | 238 | |
238 | /* SCIF0 */ | 239 | CLKDEV_ICK_ID("sci_fck", "sh-sci.0", &mstp_clks[MSTP007]), |
239 | .dev_id = "sh-sci.0", | 240 | CLKDEV_ICK_ID("sci_fck", "sh-sci.1", &mstp_clks[MSTP006]), |
240 | .con_id = "sci_fck", | 241 | CLKDEV_ICK_ID("sci_fck", "sh-sci.2", &mstp_clks[MSTP005]), |
241 | .clk = &mstp_clks[MSTP007], | 242 | CLKDEV_ICK_ID("sci_fck", "sh-sci.3", &mstp_clks[MSTP004]), |
242 | }, { | 243 | |
243 | /* SCIF1 */ | ||
244 | .dev_id = "sh-sci.1", | ||
245 | .con_id = "sci_fck", | ||
246 | .clk = &mstp_clks[MSTP006], | ||
247 | }, { | ||
248 | /* SCIF2 */ | ||
249 | .dev_id = "sh-sci.2", | ||
250 | .con_id = "sci_fck", | ||
251 | .clk = &mstp_clks[MSTP005], | ||
252 | }, { | ||
253 | /* SCIF3 */ | ||
254 | .dev_id = "sh-sci.3", | ||
255 | .con_id = "sci_fck", | ||
256 | .clk = &mstp_clks[MSTP004], | ||
257 | }, | ||
258 | CLKDEV_CON_ID("sio0", &mstp_clks[MSTP003]), | 244 | CLKDEV_CON_ID("sio0", &mstp_clks[MSTP003]), |
259 | CLKDEV_CON_ID("siof0", &mstp_clks[MSTP002]), | 245 | CLKDEV_CON_ID("siof0", &mstp_clks[MSTP002]), |
260 | CLKDEV_CON_ID("siof1", &mstp_clks[MSTP001]), | 246 | CLKDEV_CON_ID("siof1", &mstp_clks[MSTP001]), |