diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-07-05 21:18:19 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-07-11 02:03:28 -0400 |
commit | ee0c2eff4f23b78cf2f425599b2235aada90ed63 (patch) | |
tree | 703657a441c226fd4ded58f6bea9d1b1840120e4 /arch/sh/kernel | |
parent | 074fcdfff6c45e7ccb24cbc9fc229805d451e7e6 (diff) |
sh: clock-sh7366: 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')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7366.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7366.c b/arch/sh/kernel/cpu/sh4a/clock-sh7366.c index bddfe013b3ae..092abfe8b482 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7366.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7366.c | |||
@@ -194,6 +194,7 @@ static struct clk mstp_clks[MSTP_NR] = { | |||
194 | 194 | ||
195 | #define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk } | 195 | #define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk } |
196 | #define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk } | 196 | #define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk } |
197 | #define CLKDEV_ICK_ID(_cid, _did, _clk) { .con_id = _cid, .dev_id = _did, .clk = _clk } | ||
197 | 198 | ||
198 | static struct clk_lookup lookups[] = { | 199 | static struct clk_lookup lookups[] = { |
199 | /* main clocks */ | 200 | /* main clocks */ |
@@ -232,22 +233,11 @@ static struct clk_lookup lookups[] = { | |||
232 | CLKDEV_CON_ID("rwdt0", &mstp_clks[MSTP013]), | 233 | CLKDEV_CON_ID("rwdt0", &mstp_clks[MSTP013]), |
233 | CLKDEV_CON_ID("mfi0", &mstp_clks[MSTP011]), | 234 | CLKDEV_CON_ID("mfi0", &mstp_clks[MSTP011]), |
234 | CLKDEV_CON_ID("flctl0", &mstp_clks[MSTP010]), | 235 | CLKDEV_CON_ID("flctl0", &mstp_clks[MSTP010]), |
235 | { | 236 | |
236 | /* SCIF0 */ | 237 | CLKDEV_ICK_ID("sci_fck", "sh-sci.0", &mstp_clks[MSTP007]), |
237 | .dev_id = "sh-sci.0", | 238 | CLKDEV_ICK_ID("sci_fck", "sh-sci.1", &mstp_clks[MSTP006]), |
238 | .con_id = "sci_fck", | 239 | CLKDEV_ICK_ID("sci_fck", "sh-sci.2", &mstp_clks[MSTP005]), |
239 | .clk = &mstp_clks[MSTP007], | 240 | |
240 | }, { | ||
241 | /* SCIF1 */ | ||
242 | .dev_id = "sh-sci.1", | ||
243 | .con_id = "sci_fck", | ||
244 | .clk = &mstp_clks[MSTP006], | ||
245 | }, { | ||
246 | /* SCIF2 */ | ||
247 | .dev_id = "sh-sci.2", | ||
248 | .con_id = "sci_fck", | ||
249 | .clk = &mstp_clks[MSTP005], | ||
250 | }, | ||
251 | CLKDEV_CON_ID("msiof0", &mstp_clks[MSTP002]), | 241 | CLKDEV_CON_ID("msiof0", &mstp_clks[MSTP002]), |
252 | CLKDEV_CON_ID("sbr0", &mstp_clks[MSTP001]), | 242 | CLKDEV_CON_ID("sbr0", &mstp_clks[MSTP001]), |
253 | CLKDEV_DEV_ID("i2c-sh_mobile.0", &mstp_clks[MSTP109]), | 243 | CLKDEV_DEV_ID("i2c-sh_mobile.0", &mstp_clks[MSTP109]), |