diff options
| -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]), |
