diff options
author | Magnus Damm <damm@opensource.se> | 2010-05-11 01:00:22 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-05-13 04:32:54 -0400 |
commit | eb85dcaa3e386eb5f1b9b48f707088538a789d58 (patch) | |
tree | d7804fc56c97fb36519fb26a4f57a5273ae7093c | |
parent | 5b10a27e9f0aa7282e3b8fd470e71201d6f5764c (diff) |
sh: sh7785 mstp32 clkdev lookup
Add sh7785 MSTP clocks to the clkdev lookup table.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7785.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7785.c b/arch/sh/kernel/cpu/sh4a/clock-sh7785.c index cc34ec352996..24d7208ff705 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7785.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7785.c | |||
@@ -120,7 +120,47 @@ static struct clk mstp_clks[MSTP_NR] = { | |||
120 | [MSTP100] = SH_CLK_MSTP32("gdta_fck", -1, NULL, MSTPCR1, 0, 0), | 120 | [MSTP100] = SH_CLK_MSTP32("gdta_fck", -1, NULL, MSTPCR1, 0, 0), |
121 | }; | 121 | }; |
122 | 122 | ||
123 | #define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk } | ||
124 | |||
123 | static struct clk_lookup lookups[] = { | 125 | static struct clk_lookup lookups[] = { |
126 | /* MSTP32 clocks */ | ||
127 | { | ||
128 | /* SCIF5 */ | ||
129 | .dev_id = "sh-sci.5", | ||
130 | .con_id = "sci_fck", | ||
131 | .clk = &mstp_clks[MSTP029], | ||
132 | }, { | ||
133 | /* SCIF4 */ | ||
134 | .dev_id = "sh-sci.4", | ||
135 | .con_id = "sci_fck", | ||
136 | .clk = &mstp_clks[MSTP028], | ||
137 | }, { | ||
138 | /* SCIF3 */ | ||
139 | .dev_id = "sh-sci.3", | ||
140 | .con_id = "sci_fck", | ||
141 | .clk = &mstp_clks[MSTP027], | ||
142 | }, { | ||
143 | /* SCIF2 */ | ||
144 | .dev_id = "sh-sci.2", | ||
145 | .con_id = "sci_fck", | ||
146 | .clk = &mstp_clks[MSTP026], | ||
147 | }, { | ||
148 | /* SCIF1 */ | ||
149 | .dev_id = "sh-sci.1", | ||
150 | .con_id = "sci_fck", | ||
151 | .clk = &mstp_clks[MSTP025], | ||
152 | }, { | ||
153 | /* SCIF0 */ | ||
154 | .dev_id = "sh-sci.0", | ||
155 | .con_id = "sci_fck", | ||
156 | .clk = &mstp_clks[MSTP024], | ||
157 | }, | ||
158 | CLKDEV_CON_ID("ssi1_fck", &mstp_clks[MSTP021]), | ||
159 | CLKDEV_CON_ID("ssi0_fck", &mstp_clks[MSTP020]), | ||
160 | CLKDEV_CON_ID("hac1_fck", &mstp_clks[MSTP017]), | ||
161 | CLKDEV_CON_ID("hac0_fck", &mstp_clks[MSTP016]), | ||
162 | CLKDEV_CON_ID("mmcif_fck", &mstp_clks[MSTP013]), | ||
163 | CLKDEV_CON_ID("flctl_fck", &mstp_clks[MSTP012]), | ||
124 | { | 164 | { |
125 | /* TMU0 */ | 165 | /* TMU0 */ |
126 | .dev_id = "sh_tmu.0", | 166 | .dev_id = "sh_tmu.0", |
@@ -152,6 +192,13 @@ static struct clk_lookup lookups[] = { | |||
152 | .con_id = "tmu_fck", | 192 | .con_id = "tmu_fck", |
153 | .clk = &mstp_clks[MSTP009], | 193 | .clk = &mstp_clks[MSTP009], |
154 | }, | 194 | }, |
195 | CLKDEV_CON_ID("siof_fck", &mstp_clks[MSTP003]), | ||
196 | CLKDEV_CON_ID("hspi_fck", &mstp_clks[MSTP002]), | ||
197 | CLKDEV_CON_ID("hudi_fck", &mstp_clks[MSTP119]), | ||
198 | CLKDEV_CON_ID("ubc_fck", &mstp_clks[MSTP117]), | ||
199 | CLKDEV_CON_ID("dmac_11_6_fck", &mstp_clks[MSTP105]), | ||
200 | CLKDEV_CON_ID("dmac_5_0_fck", &mstp_clks[MSTP104]), | ||
201 | CLKDEV_CON_ID("gdta_fck", &mstp_clks[MSTP100]), | ||
155 | }; | 202 | }; |
156 | 203 | ||
157 | int __init arch_clk_init(void) | 204 | int __init arch_clk_init(void) |