Lines Matching full:clk

9 #include <linux/clk.h>
16 #include <linux/clk/mmp.h>
18 #include "clk.h"
76 struct clk *clk; in mmp2_clk_init() local
77 struct clk *vctcxo; in mmp2_clk_init()
100 clk = clk_register_fixed_rate(NULL, "clk32", NULL, 0, 3200); in mmp2_clk_init()
101 clk_register_clkdev(clk, "clk32", NULL); in mmp2_clk_init()
106 clk = clk_register_fixed_rate(NULL, "pll1", NULL, 0, 800000000); in mmp2_clk_init()
107 clk_register_clkdev(clk, "pll1", NULL); in mmp2_clk_init()
109 clk = clk_register_fixed_rate(NULL, "usb_pll", NULL, 0, 480000000); in mmp2_clk_init()
110 clk_register_clkdev(clk, "usb_pll", NULL); in mmp2_clk_init()
112 clk = clk_register_fixed_rate(NULL, "pll2", NULL, 0, 960000000); in mmp2_clk_init()
113 clk_register_clkdev(clk, "pll2", NULL); in mmp2_clk_init()
115 clk = clk_register_fixed_factor(NULL, "pll1_2", "pll1", in mmp2_clk_init()
117 clk_register_clkdev(clk, "pll1_2", NULL); in mmp2_clk_init()
119 clk = clk_register_fixed_factor(NULL, "pll1_4", "pll1_2", in mmp2_clk_init()
121 clk_register_clkdev(clk, "pll1_4", NULL); in mmp2_clk_init()
123 clk = clk_register_fixed_factor(NULL, "pll1_8", "pll1_4", in mmp2_clk_init()
125 clk_register_clkdev(clk, "pll1_8", NULL); in mmp2_clk_init()
127 clk = clk_register_fixed_factor(NULL, "pll1_16", "pll1_8", in mmp2_clk_init()
129 clk_register_clkdev(clk, "pll1_16", NULL); in mmp2_clk_init()
131 clk = clk_register_fixed_factor(NULL, "pll1_20", "pll1_4", in mmp2_clk_init()
133 clk_register_clkdev(clk, "pll1_20", NULL); in mmp2_clk_init()
135 clk = clk_register_fixed_factor(NULL, "pll1_3", "pll1", in mmp2_clk_init()
137 clk_register_clkdev(clk, "pll1_3", NULL); in mmp2_clk_init()
139 clk = clk_register_fixed_factor(NULL, "pll1_6", "pll1_3", in mmp2_clk_init()
141 clk_register_clkdev(clk, "pll1_6", NULL); in mmp2_clk_init()
143 clk = clk_register_fixed_factor(NULL, "pll1_12", "pll1_6", in mmp2_clk_init()
145 clk_register_clkdev(clk, "pll1_12", NULL); in mmp2_clk_init()
147 clk = clk_register_fixed_factor(NULL, "pll2_2", "pll2", in mmp2_clk_init()
149 clk_register_clkdev(clk, "pll2_2", NULL); in mmp2_clk_init()
151 clk = clk_register_fixed_factor(NULL, "pll2_4", "pll2_2", in mmp2_clk_init()
153 clk_register_clkdev(clk, "pll2_4", NULL); in mmp2_clk_init()
155 clk = clk_register_fixed_factor(NULL, "pll2_8", "pll2_4", in mmp2_clk_init()
157 clk_register_clkdev(clk, "pll2_8", NULL); in mmp2_clk_init()
159 clk = clk_register_fixed_factor(NULL, "pll2_16", "pll2_8", in mmp2_clk_init()
161 clk_register_clkdev(clk, "pll2_16", NULL); in mmp2_clk_init()
163 clk = clk_register_fixed_factor(NULL, "pll2_3", "pll2", in mmp2_clk_init()
165 clk_register_clkdev(clk, "pll2_3", NULL); in mmp2_clk_init()
167 clk = clk_register_fixed_factor(NULL, "pll2_6", "pll2_3", in mmp2_clk_init()
169 clk_register_clkdev(clk, "pll2_6", NULL); in mmp2_clk_init()
171 clk = clk_register_fixed_factor(NULL, "pll2_12", "pll2_6", in mmp2_clk_init()
173 clk_register_clkdev(clk, "pll2_12", NULL); in mmp2_clk_init()
175 clk = clk_register_fixed_factor(NULL, "vctcxo_2", "vctcxo", in mmp2_clk_init()
177 clk_register_clkdev(clk, "vctcxo_2", NULL); in mmp2_clk_init()
179 clk = clk_register_fixed_factor(NULL, "vctcxo_4", "vctcxo_2", in mmp2_clk_init()
181 clk_register_clkdev(clk, "vctcxo_4", NULL); in mmp2_clk_init()
183 clk = mmp_clk_register_factor("uart_pll", "pll1_4", 0, in mmp2_clk_init()
187 clk_set_rate(clk, 14745600); in mmp2_clk_init()
188 clk_register_clkdev(clk, "uart_pll", NULL); in mmp2_clk_init()
190 clk = mmp_clk_register_apbc("twsi0", "vctcxo", in mmp2_clk_init()
192 clk_register_clkdev(clk, NULL, "pxa2xx-i2c.0"); in mmp2_clk_init()
194 clk = mmp_clk_register_apbc("twsi1", "vctcxo", in mmp2_clk_init()
196 clk_register_clkdev(clk, NULL, "pxa2xx-i2c.1"); in mmp2_clk_init()
198 clk = mmp_clk_register_apbc("twsi2", "vctcxo", in mmp2_clk_init()
200 clk_register_clkdev(clk, NULL, "pxa2xx-i2c.2"); in mmp2_clk_init()
202 clk = mmp_clk_register_apbc("twsi3", "vctcxo", in mmp2_clk_init()
204 clk_register_clkdev(clk, NULL, "pxa2xx-i2c.3"); in mmp2_clk_init()
206 clk = mmp_clk_register_apbc("twsi4", "vctcxo", in mmp2_clk_init()
208 clk_register_clkdev(clk, NULL, "pxa2xx-i2c.4"); in mmp2_clk_init()
210 clk = mmp_clk_register_apbc("twsi5", "vctcxo", in mmp2_clk_init()
212 clk_register_clkdev(clk, NULL, "pxa2xx-i2c.5"); in mmp2_clk_init()
214 clk = mmp_clk_register_apbc("gpio", "vctcxo", in mmp2_clk_init()
216 clk_register_clkdev(clk, NULL, "mmp2-gpio"); in mmp2_clk_init()
218 clk = mmp_clk_register_apbc("kpc", "clk32", in mmp2_clk_init()
220 clk_register_clkdev(clk, NULL, "pxa27x-keypad"); in mmp2_clk_init()
222 clk = mmp_clk_register_apbc("rtc", "clk32", in mmp2_clk_init()
224 clk_register_clkdev(clk, NULL, "mmp-rtc"); in mmp2_clk_init()
226 clk = mmp_clk_register_apbc("pwm0", "vctcxo", in mmp2_clk_init()
228 clk_register_clkdev(clk, NULL, "mmp2-pwm.0"); in mmp2_clk_init()
230 clk = mmp_clk_register_apbc("pwm1", "vctcxo", in mmp2_clk_init()
232 clk_register_clkdev(clk, NULL, "mmp2-pwm.1"); in mmp2_clk_init()
234 clk = mmp_clk_register_apbc("pwm2", "vctcxo", in mmp2_clk_init()
236 clk_register_clkdev(clk, NULL, "mmp2-pwm.2"); in mmp2_clk_init()
238 clk = mmp_clk_register_apbc("pwm3", "vctcxo", in mmp2_clk_init()
240 clk_register_clkdev(clk, NULL, "mmp2-pwm.3"); in mmp2_clk_init()
242 clk = clk_register_mux(NULL, "uart0_mux", uart_parent, in mmp2_clk_init()
246 clk_set_parent(clk, vctcxo); in mmp2_clk_init()
247 clk_register_clkdev(clk, "uart_mux.0", NULL); in mmp2_clk_init()
249 clk = mmp_clk_register_apbc("uart0", "uart0_mux", in mmp2_clk_init()
251 clk_register_clkdev(clk, NULL, "pxa2xx-uart.0"); in mmp2_clk_init()
253 clk = clk_register_mux(NULL, "uart1_mux", uart_parent, in mmp2_clk_init()
257 clk_set_parent(clk, vctcxo); in mmp2_clk_init()
258 clk_register_clkdev(clk, "uart_mux.1", NULL); in mmp2_clk_init()
260 clk = mmp_clk_register_apbc("uart1", "uart1_mux", in mmp2_clk_init()
262 clk_register_clkdev(clk, NULL, "pxa2xx-uart.1"); in mmp2_clk_init()
264 clk = clk_register_mux(NULL, "uart2_mux", uart_parent, in mmp2_clk_init()
268 clk_set_parent(clk, vctcxo); in mmp2_clk_init()
269 clk_register_clkdev(clk, "uart_mux.2", NULL); in mmp2_clk_init()
271 clk = mmp_clk_register_apbc("uart2", "uart2_mux", in mmp2_clk_init()
273 clk_register_clkdev(clk, NULL, "pxa2xx-uart.2"); in mmp2_clk_init()
275 clk = clk_register_mux(NULL, "uart3_mux", uart_parent, in mmp2_clk_init()
279 clk_set_parent(clk, vctcxo); in mmp2_clk_init()
280 clk_register_clkdev(clk, "uart_mux.3", NULL); in mmp2_clk_init()
282 clk = mmp_clk_register_apbc("uart3", "uart3_mux", in mmp2_clk_init()
284 clk_register_clkdev(clk, NULL, "pxa2xx-uart.3"); in mmp2_clk_init()
286 clk = clk_register_mux(NULL, "ssp0_mux", ssp_parent, in mmp2_clk_init()
290 clk_register_clkdev(clk, "uart_mux.0", NULL); in mmp2_clk_init()
292 clk = mmp_clk_register_apbc("ssp0", "ssp0_mux", in mmp2_clk_init()
294 clk_register_clkdev(clk, NULL, "mmp-ssp.0"); in mmp2_clk_init()
296 clk = clk_register_mux(NULL, "ssp1_mux", ssp_parent, in mmp2_clk_init()
300 clk_register_clkdev(clk, "ssp_mux.1", NULL); in mmp2_clk_init()
302 clk = mmp_clk_register_apbc("ssp1", "ssp1_mux", in mmp2_clk_init()
304 clk_register_clkdev(clk, NULL, "mmp-ssp.1"); in mmp2_clk_init()
306 clk = clk_register_mux(NULL, "ssp2_mux", ssp_parent, in mmp2_clk_init()
310 clk_register_clkdev(clk, "ssp_mux.2", NULL); in mmp2_clk_init()
312 clk = mmp_clk_register_apbc("ssp2", "ssp2_mux", in mmp2_clk_init()
314 clk_register_clkdev(clk, NULL, "mmp-ssp.2"); in mmp2_clk_init()
316 clk = clk_register_mux(NULL, "ssp3_mux", ssp_parent, in mmp2_clk_init()
320 clk_register_clkdev(clk, "ssp_mux.3", NULL); in mmp2_clk_init()
322 clk = mmp_clk_register_apbc("ssp3", "ssp3_mux", in mmp2_clk_init()
324 clk_register_clkdev(clk, NULL, "mmp-ssp.3"); in mmp2_clk_init()
326 clk = clk_register_mux(NULL, "sdh_mux", sdh_parent, in mmp2_clk_init()
330 clk_register_clkdev(clk, "sdh_mux", NULL); in mmp2_clk_init()
332 clk = clk_register_divider(NULL, "sdh_div", "sdh_mux", in mmp2_clk_init()
335 clk_register_clkdev(clk, "sdh_div", NULL); in mmp2_clk_init()
337 clk = mmp_clk_register_apmu("sdh0", "sdh_div", apmu_base + APMU_SDH0, in mmp2_clk_init()
339 clk_register_clkdev(clk, NULL, "sdhci-pxav3.0"); in mmp2_clk_init()
341 clk = mmp_clk_register_apmu("sdh1", "sdh_div", apmu_base + APMU_SDH1, in mmp2_clk_init()
343 clk_register_clkdev(clk, NULL, "sdhci-pxav3.1"); in mmp2_clk_init()
345 clk = mmp_clk_register_apmu("sdh2", "sdh_div", apmu_base + APMU_SDH2, in mmp2_clk_init()
347 clk_register_clkdev(clk, NULL, "sdhci-pxav3.2"); in mmp2_clk_init()
349 clk = mmp_clk_register_apmu("sdh3", "sdh_div", apmu_base + APMU_SDH3, in mmp2_clk_init()
351 clk_register_clkdev(clk, NULL, "sdhci-pxav3.3"); in mmp2_clk_init()
353 clk = mmp_clk_register_apmu("usb", "usb_pll", apmu_base + APMU_USB, in mmp2_clk_init()
355 clk_register_clkdev(clk, "usb_clk", NULL); in mmp2_clk_init()
357 clk = clk_register_mux(NULL, "disp0_mux", disp_parent, in mmp2_clk_init()
361 clk_register_clkdev(clk, "disp_mux.0", NULL); in mmp2_clk_init()
363 clk = clk_register_divider(NULL, "disp0_div", "disp0_mux", in mmp2_clk_init()
366 clk_register_clkdev(clk, "disp_div.0", NULL); in mmp2_clk_init()
368 clk = mmp_clk_register_apmu("disp0", "disp0_div", in mmp2_clk_init()
370 clk_register_clkdev(clk, NULL, "mmp-disp.0"); in mmp2_clk_init()
372 clk = clk_register_divider(NULL, "disp0_sphy_div", "disp0_mux", 0, in mmp2_clk_init()
374 clk_register_clkdev(clk, "disp_sphy_div.0", NULL); in mmp2_clk_init()
376 clk = mmp_clk_register_apmu("disp0_sphy", "disp0_sphy_div", in mmp2_clk_init()
378 clk_register_clkdev(clk, "disp_sphy.0", NULL); in mmp2_clk_init()
380 clk = clk_register_mux(NULL, "disp1_mux", disp_parent, in mmp2_clk_init()
384 clk_register_clkdev(clk, "disp_mux.1", NULL); in mmp2_clk_init()
386 clk = clk_register_divider(NULL, "disp1_div", "disp1_mux", in mmp2_clk_init()
389 clk_register_clkdev(clk, "disp_div.1", NULL); in mmp2_clk_init()
391 clk = mmp_clk_register_apmu("disp1", "disp1_div", in mmp2_clk_init()
393 clk_register_clkdev(clk, NULL, "mmp-disp.1"); in mmp2_clk_init()
395 clk = mmp_clk_register_apmu("ccic_arbiter", "vctcxo", in mmp2_clk_init()
397 clk_register_clkdev(clk, "ccic_arbiter", NULL); in mmp2_clk_init()
399 clk = clk_register_mux(NULL, "ccic0_mux", ccic_parent, in mmp2_clk_init()
403 clk_register_clkdev(clk, "ccic_mux.0", NULL); in mmp2_clk_init()
405 clk = clk_register_divider(NULL, "ccic0_div", "ccic0_mux", in mmp2_clk_init()
408 clk_register_clkdev(clk, "ccic_div.0", NULL); in mmp2_clk_init()
410 clk = mmp_clk_register_apmu("ccic0", "ccic0_div", in mmp2_clk_init()
412 clk_register_clkdev(clk, "fnclk", "mmp-ccic.0"); in mmp2_clk_init()
414 clk = mmp_clk_register_apmu("ccic0_phy", "ccic0_div", in mmp2_clk_init()
416 clk_register_clkdev(clk, "phyclk", "mmp-ccic.0"); in mmp2_clk_init()
418 clk = clk_register_divider(NULL, "ccic0_sphy_div", "ccic0_div", in mmp2_clk_init()
421 clk_register_clkdev(clk, "sphyclk_div", "mmp-ccic.0"); in mmp2_clk_init()
423 clk = mmp_clk_register_apmu("ccic0_sphy", "ccic0_sphy_div", in mmp2_clk_init()
425 clk_register_clkdev(clk, "sphyclk", "mmp-ccic.0"); in mmp2_clk_init()
427 clk = clk_register_mux(NULL, "ccic1_mux", ccic_parent, in mmp2_clk_init()
431 clk_register_clkdev(clk, "ccic_mux.1", NULL); in mmp2_clk_init()
433 clk = clk_register_divider(NULL, "ccic1_div", "ccic1_mux", in mmp2_clk_init()
436 clk_register_clkdev(clk, "ccic_div.1", NULL); in mmp2_clk_init()
438 clk = mmp_clk_register_apmu("ccic1", "ccic1_div", in mmp2_clk_init()
440 clk_register_clkdev(clk, "fnclk", "mmp-ccic.1"); in mmp2_clk_init()
442 clk = mmp_clk_register_apmu("ccic1_phy", "ccic1_div", in mmp2_clk_init()
444 clk_register_clkdev(clk, "phyclk", "mmp-ccic.1"); in mmp2_clk_init()
446 clk = clk_register_divider(NULL, "ccic1_sphy_div", "ccic1_div", in mmp2_clk_init()
449 clk_register_clkdev(clk, "sphyclk_div", "mmp-ccic.1"); in mmp2_clk_init()
451 clk = mmp_clk_register_apmu("ccic1_sphy", "ccic1_sphy_div", in mmp2_clk_init()
453 clk_register_clkdev(clk, "sphyclk", "mmp-ccic.1"); in mmp2_clk_init()