Lines Matching refs:clk
141 struct clk *clk; in spear300_clk_init() local
143 clk = clk_register_fixed_factor(NULL, "clcd_clk", "ras_pll3_clk", 0, in spear300_clk_init()
145 clk_register_clkdev(clk, NULL, "60000000.clcd"); in spear300_clk_init()
147 clk = clk_register_fixed_factor(NULL, "fsmc_clk", "ras_ahb_clk", 0, 1, in spear300_clk_init()
149 clk_register_clkdev(clk, NULL, "94000000.flash"); in spear300_clk_init()
151 clk = clk_register_fixed_factor(NULL, "sdhci_clk", "ras_ahb_clk", 0, 1, in spear300_clk_init()
153 clk_register_clkdev(clk, NULL, "70000000.sdhci"); in spear300_clk_init()
155 clk = clk_register_fixed_factor(NULL, "gpio1_clk", "ras_apb_clk", 0, 1, in spear300_clk_init()
157 clk_register_clkdev(clk, NULL, "a9000000.gpio"); in spear300_clk_init()
159 clk = clk_register_fixed_factor(NULL, "kbd_clk", "ras_apb_clk", 0, 1, in spear300_clk_init()
161 clk_register_clkdev(clk, NULL, "a0000000.kbd"); in spear300_clk_init()
171 struct clk *clk; in spear310_clk_init() local
173 clk = clk_register_fixed_factor(NULL, "emi_clk", "ras_ahb_clk", 0, 1, in spear310_clk_init()
175 clk_register_clkdev(clk, "emi", NULL); in spear310_clk_init()
177 clk = clk_register_fixed_factor(NULL, "fsmc_clk", "ras_ahb_clk", 0, 1, in spear310_clk_init()
179 clk_register_clkdev(clk, NULL, "44000000.flash"); in spear310_clk_init()
181 clk = clk_register_fixed_factor(NULL, "tdm_clk", "ras_ahb_clk", 0, 1, in spear310_clk_init()
183 clk_register_clkdev(clk, NULL, "tdm"); in spear310_clk_init()
185 clk = clk_register_fixed_factor(NULL, "uart1_clk", "ras_apb_clk", 0, 1, in spear310_clk_init()
187 clk_register_clkdev(clk, NULL, "b2000000.serial"); in spear310_clk_init()
189 clk = clk_register_fixed_factor(NULL, "uart2_clk", "ras_apb_clk", 0, 1, in spear310_clk_init()
191 clk_register_clkdev(clk, NULL, "b2080000.serial"); in spear310_clk_init()
193 clk = clk_register_fixed_factor(NULL, "uart3_clk", "ras_apb_clk", 0, 1, in spear310_clk_init()
195 clk_register_clkdev(clk, NULL, "b2100000.serial"); in spear310_clk_init()
197 clk = clk_register_fixed_factor(NULL, "uart4_clk", "ras_apb_clk", 0, 1, in spear310_clk_init()
199 clk_register_clkdev(clk, NULL, "b2180000.serial"); in spear310_clk_init()
201 clk = clk_register_fixed_factor(NULL, "uart5_clk", "ras_apb_clk", 0, 1, in spear310_clk_init()
203 clk_register_clkdev(clk, NULL, "b2200000.serial"); in spear310_clk_init()
247 struct clk *ras_apb_clk) in spear320_clk_init()
249 struct clk *clk; in spear320_clk_init() local
251 clk = clk_register_fixed_rate(NULL, "smii_125m_pad_clk", NULL, in spear320_clk_init()
253 clk_register_clkdev(clk, "smii_125m_pad", NULL); in spear320_clk_init()
255 clk = clk_register_fixed_factor(NULL, "clcd_clk", "ras_pll3_clk", 0, in spear320_clk_init()
257 clk_register_clkdev(clk, NULL, "90000000.clcd"); in spear320_clk_init()
259 clk = clk_register_fixed_factor(NULL, "emi_clk", "ras_ahb_clk", 0, 1, in spear320_clk_init()
261 clk_register_clkdev(clk, "emi", NULL); in spear320_clk_init()
263 clk = clk_register_fixed_factor(NULL, "fsmc_clk", "ras_ahb_clk", 0, 1, in spear320_clk_init()
265 clk_register_clkdev(clk, NULL, "4c000000.flash"); in spear320_clk_init()
267 clk = clk_register_fixed_factor(NULL, "i2c1_clk", "ras_ahb_clk", 0, 1, in spear320_clk_init()
269 clk_register_clkdev(clk, NULL, "a7000000.i2c"); in spear320_clk_init()
271 clk = clk_register_fixed_factor(NULL, "pwm_clk", "ras_ahb_clk", 0, 1, in spear320_clk_init()
273 clk_register_clkdev(clk, NULL, "a8000000.pwm"); in spear320_clk_init()
275 clk = clk_register_fixed_factor(NULL, "ssp1_clk", "ras_ahb_clk", 0, 1, in spear320_clk_init()
277 clk_register_clkdev(clk, NULL, "a5000000.spi"); in spear320_clk_init()
279 clk = clk_register_fixed_factor(NULL, "ssp2_clk", "ras_ahb_clk", 0, 1, in spear320_clk_init()
281 clk_register_clkdev(clk, NULL, "a6000000.spi"); in spear320_clk_init()
283 clk = clk_register_fixed_factor(NULL, "can0_clk", "ras_apb_clk", 0, 1, in spear320_clk_init()
285 clk_register_clkdev(clk, NULL, "c_can_platform.0"); in spear320_clk_init()
287 clk = clk_register_fixed_factor(NULL, "can1_clk", "ras_apb_clk", 0, 1, in spear320_clk_init()
289 clk_register_clkdev(clk, NULL, "c_can_platform.1"); in spear320_clk_init()
291 clk = clk_register_fixed_factor(NULL, "i2s_clk", "ras_apb_clk", 0, 1, in spear320_clk_init()
293 clk_register_clkdev(clk, NULL, "a9400000.i2s"); in spear320_clk_init()
295 clk = clk_register_mux(NULL, "i2s_ref_clk", i2s_ref_parents, in spear320_clk_init()
300 clk_register_clkdev(clk, "i2s_ref_clk", NULL); in spear320_clk_init()
302 clk = clk_register_fixed_factor(NULL, "i2s_sclk", "i2s_ref_clk", in spear320_clk_init()
305 clk_register_clkdev(clk, "i2s_sclk", NULL); in spear320_clk_init()
307 clk = clk_register_fixed_factor(NULL, "macb1_clk", "ras_apb_clk", 0, 1, in spear320_clk_init()
309 clk_register_clkdev(clk, "hclk", "aa000000.eth"); in spear320_clk_init()
311 clk = clk_register_fixed_factor(NULL, "macb2_clk", "ras_apb_clk", 0, 1, in spear320_clk_init()
313 clk_register_clkdev(clk, "hclk", "ab000000.eth"); in spear320_clk_init()
315 clk = clk_register_mux(NULL, "rs485_clk", uartx_parents, in spear320_clk_init()
320 clk_register_clkdev(clk, NULL, "a9300000.serial"); in spear320_clk_init()
322 clk = clk_register_mux(NULL, "sdhci_clk", sdhci_parents, in spear320_clk_init()
327 clk_register_clkdev(clk, NULL, "70000000.sdhci"); in spear320_clk_init()
329 clk = clk_register_mux(NULL, "smii_pclk", smii0_parents, in spear320_clk_init()
333 clk_register_clkdev(clk, NULL, "smii_pclk"); in spear320_clk_init()
335 clk = clk_register_fixed_factor(NULL, "smii_clk", "smii_pclk", 0, 1, 1); in spear320_clk_init()
336 clk_register_clkdev(clk, NULL, "smii"); in spear320_clk_init()
338 clk = clk_register_mux(NULL, "uart1_clk", uartx_parents, in spear320_clk_init()
343 clk_register_clkdev(clk, NULL, "a3000000.serial"); in spear320_clk_init()
345 clk_set_parent(clk, ras_apb_clk); in spear320_clk_init()
347 clk = clk_register_mux(NULL, "uart2_clk", uartx_parents, in spear320_clk_init()
352 clk_register_clkdev(clk, NULL, "a4000000.serial"); in spear320_clk_init()
354 clk_set_parent(clk, ras_apb_clk); in spear320_clk_init()
356 clk = clk_register_mux(NULL, "uart3_clk", uartx_parents, in spear320_clk_init()
361 clk_register_clkdev(clk, NULL, "a9100000.serial"); in spear320_clk_init()
363 clk = clk_register_mux(NULL, "uart4_clk", uartx_parents, in spear320_clk_init()
368 clk_register_clkdev(clk, NULL, "a9200000.serial"); in spear320_clk_init()
370 clk = clk_register_mux(NULL, "uart5_clk", uartx_parents, in spear320_clk_init()
375 clk_register_clkdev(clk, NULL, "60000000.serial"); in spear320_clk_init()
377 clk = clk_register_mux(NULL, "uart6_clk", uartx_parents, in spear320_clk_init()
382 clk_register_clkdev(clk, NULL, "60100000.serial"); in spear320_clk_init()
385 static inline void spear320_clk_init(void __iomem *sb, struct clk *rc) { } in spear320_clk_init()
390 struct clk *clk, *clk1, *ras_apb_clk; in spear3xx_clk_init() local
392 clk = clk_register_fixed_rate(NULL, "osc_32k_clk", NULL, 0, 32000); in spear3xx_clk_init()
393 clk_register_clkdev(clk, "osc_32k_clk", NULL); in spear3xx_clk_init()
395 clk = clk_register_fixed_rate(NULL, "osc_24m_clk", NULL, 0, 24000000); in spear3xx_clk_init()
396 clk_register_clkdev(clk, "osc_24m_clk", NULL); in spear3xx_clk_init()
399 clk = clk_register_gate(NULL, "rtc-spear", "osc_32k_clk", 0, in spear3xx_clk_init()
401 clk_register_clkdev(clk, NULL, "fc900000.rtc"); in spear3xx_clk_init()
404 clk = clk_register_fixed_rate(NULL, "pll3_clk", "osc_24m_clk", 0, in spear3xx_clk_init()
406 clk_register_clkdev(clk, "pll3_clk", NULL); in spear3xx_clk_init()
408 clk = clk_register_fixed_factor(NULL, "wdt_clk", "osc_24m_clk", 0, 1, in spear3xx_clk_init()
410 clk_register_clkdev(clk, NULL, "fc880000.wdt"); in spear3xx_clk_init()
412 clk = clk_register_vco_pll("vco1_clk", "pll1_clk", NULL, in spear3xx_clk_init()
415 clk_register_clkdev(clk, "vco1_clk", NULL); in spear3xx_clk_init()
418 clk = clk_register_vco_pll("vco2_clk", "pll2_clk", NULL, in spear3xx_clk_init()
421 clk_register_clkdev(clk, "vco2_clk", NULL); in spear3xx_clk_init()
425 clk = clk_register_fixed_factor(NULL, "cpu_clk", "pll1_clk", in spear3xx_clk_init()
427 clk_register_clkdev(clk, "cpu_clk", NULL); in spear3xx_clk_init()
429 clk = clk_register_divider(NULL, "ahb_clk", "pll1_clk", in spear3xx_clk_init()
432 clk_register_clkdev(clk, "ahb_clk", NULL); in spear3xx_clk_init()
434 clk = clk_register_aux("uart_syn_clk", "uart_syn_gclk", "pll1_clk", 0, in spear3xx_clk_init()
437 clk_register_clkdev(clk, "uart_syn_clk", NULL); in spear3xx_clk_init()
440 clk = clk_register_mux(NULL, "uart0_mclk", uart0_parents, in spear3xx_clk_init()
445 clk_register_clkdev(clk, "uart0_mclk", NULL); in spear3xx_clk_init()
447 clk = clk_register_gate(NULL, "uart0", "uart0_mclk", in spear3xx_clk_init()
450 clk_register_clkdev(clk, NULL, "d0000000.serial"); in spear3xx_clk_init()
452 clk = clk_register_aux("firda_syn_clk", "firda_syn_gclk", "pll1_clk", 0, in spear3xx_clk_init()
455 clk_register_clkdev(clk, "firda_syn_clk", NULL); in spear3xx_clk_init()
458 clk = clk_register_mux(NULL, "firda_mclk", firda_parents, in spear3xx_clk_init()
463 clk_register_clkdev(clk, "firda_mclk", NULL); in spear3xx_clk_init()
465 clk = clk_register_gate(NULL, "firda_clk", "firda_mclk", in spear3xx_clk_init()
468 clk_register_clkdev(clk, NULL, "firda"); in spear3xx_clk_init()
473 clk = clk_register_mux(NULL, "gpt0_clk", gpt0_parents, in spear3xx_clk_init()
477 clk_register_clkdev(clk, NULL, "gpt0"); in spear3xx_clk_init()
481 clk = clk_register_mux(NULL, "gpt1_mclk", gpt1_parents, in spear3xx_clk_init()
485 clk_register_clkdev(clk, "gpt1_mclk", NULL); in spear3xx_clk_init()
486 clk = clk_register_gate(NULL, "gpt1_clk", "gpt1_mclk", in spear3xx_clk_init()
489 clk_register_clkdev(clk, NULL, "gpt1"); in spear3xx_clk_init()
493 clk = clk_register_mux(NULL, "gpt2_mclk", gpt2_parents, in spear3xx_clk_init()
497 clk_register_clkdev(clk, "gpt2_mclk", NULL); in spear3xx_clk_init()
498 clk = clk_register_gate(NULL, "gpt2_clk", "gpt2_mclk", in spear3xx_clk_init()
501 clk_register_clkdev(clk, NULL, "gpt2"); in spear3xx_clk_init()
504 clk = clk_register_aux("gen0_syn_clk", "gen0_syn_gclk", "pll1_clk", in spear3xx_clk_init()
507 clk_register_clkdev(clk, "gen0_syn_clk", NULL); in spear3xx_clk_init()
510 clk = clk_register_aux("gen1_syn_clk", "gen1_syn_gclk", "pll1_clk", in spear3xx_clk_init()
513 clk_register_clkdev(clk, "gen1_syn_clk", NULL); in spear3xx_clk_init()
516 clk = clk_register_mux(NULL, "gen2_3_par_clk", gen2_3_parents, in spear3xx_clk_init()
520 clk_register_clkdev(clk, "gen2_3_par_clk", NULL); in spear3xx_clk_init()
522 clk = clk_register_aux("gen2_syn_clk", "gen2_syn_gclk", in spear3xx_clk_init()
525 clk_register_clkdev(clk, "gen2_syn_clk", NULL); in spear3xx_clk_init()
528 clk = clk_register_aux("gen3_syn_clk", "gen3_syn_gclk", in spear3xx_clk_init()
531 clk_register_clkdev(clk, "gen3_syn_clk", NULL); in spear3xx_clk_init()
535 clk = clk_register_gate(NULL, "usbh_clk", "pll3_clk", 0, PERIP1_CLK_ENB, in spear3xx_clk_init()
537 clk_register_clkdev(clk, NULL, "e1800000.ehci"); in spear3xx_clk_init()
538 clk_register_clkdev(clk, NULL, "e1900000.ohci"); in spear3xx_clk_init()
539 clk_register_clkdev(clk, NULL, "e2100000.ohci"); in spear3xx_clk_init()
541 clk = clk_register_fixed_factor(NULL, "usbh.0_clk", "usbh_clk", 0, 1, in spear3xx_clk_init()
543 clk_register_clkdev(clk, "usbh.0_clk", NULL); in spear3xx_clk_init()
545 clk = clk_register_fixed_factor(NULL, "usbh.1_clk", "usbh_clk", 0, 1, in spear3xx_clk_init()
547 clk_register_clkdev(clk, "usbh.1_clk", NULL); in spear3xx_clk_init()
549 clk = clk_register_gate(NULL, "usbd_clk", "pll3_clk", 0, PERIP1_CLK_ENB, in spear3xx_clk_init()
551 clk_register_clkdev(clk, NULL, "e1100000.usbd"); in spear3xx_clk_init()
554 clk = clk_register_fixed_factor(NULL, "ahbmult2_clk", "ahb_clk", 0, 2, in spear3xx_clk_init()
556 clk_register_clkdev(clk, "ahbmult2_clk", NULL); in spear3xx_clk_init()
558 clk = clk_register_mux(NULL, "ddr_clk", ddr_parents, in spear3xx_clk_init()
561 clk_register_clkdev(clk, "ddr_clk", NULL); in spear3xx_clk_init()
563 clk = clk_register_divider(NULL, "apb_clk", "ahb_clk", in spear3xx_clk_init()
566 clk_register_clkdev(clk, "apb_clk", NULL); in spear3xx_clk_init()
568 clk = clk_register_gate(NULL, "amem_clk", "ahb_clk", 0, AMEM_CLK_CFG, in spear3xx_clk_init()
570 clk_register_clkdev(clk, "amem_clk", NULL); in spear3xx_clk_init()
572 clk = clk_register_gate(NULL, "c3_clk", "ahb_clk", 0, PERIP1_CLK_ENB, in spear3xx_clk_init()
574 clk_register_clkdev(clk, NULL, "c3_clk"); in spear3xx_clk_init()
576 clk = clk_register_gate(NULL, "dma_clk", "ahb_clk", 0, PERIP1_CLK_ENB, in spear3xx_clk_init()
578 clk_register_clkdev(clk, NULL, "fc400000.dma"); in spear3xx_clk_init()
580 clk = clk_register_gate(NULL, "gmac_clk", "ahb_clk", 0, PERIP1_CLK_ENB, in spear3xx_clk_init()
582 clk_register_clkdev(clk, NULL, "e0800000.eth"); in spear3xx_clk_init()
584 clk = clk_register_gate(NULL, "i2c0_clk", "ahb_clk", 0, PERIP1_CLK_ENB, in spear3xx_clk_init()
586 clk_register_clkdev(clk, NULL, "d0180000.i2c"); in spear3xx_clk_init()
588 clk = clk_register_gate(NULL, "jpeg_clk", "ahb_clk", 0, PERIP1_CLK_ENB, in spear3xx_clk_init()
590 clk_register_clkdev(clk, NULL, "jpeg"); in spear3xx_clk_init()
592 clk = clk_register_gate(NULL, "smi_clk", "ahb_clk", 0, PERIP1_CLK_ENB, in spear3xx_clk_init()
594 clk_register_clkdev(clk, NULL, "fc000000.flash"); in spear3xx_clk_init()
597 clk = clk_register_gate(NULL, "adc_clk", "apb_clk", 0, PERIP1_CLK_ENB, in spear3xx_clk_init()
599 clk_register_clkdev(clk, NULL, "d0080000.adc"); in spear3xx_clk_init()
601 clk = clk_register_gate(NULL, "gpio0_clk", "apb_clk", 0, PERIP1_CLK_ENB, in spear3xx_clk_init()
603 clk_register_clkdev(clk, NULL, "fc980000.gpio"); in spear3xx_clk_init()
605 clk = clk_register_gate(NULL, "ssp0_clk", "apb_clk", 0, PERIP1_CLK_ENB, in spear3xx_clk_init()
607 clk_register_clkdev(clk, NULL, "d0100000.spi"); in spear3xx_clk_init()
610 clk = clk_register_gate(NULL, "ras_ahb_clk", "ahb_clk", 0, RAS_CLK_ENB, in spear3xx_clk_init()
612 clk_register_clkdev(clk, "ras_ahb_clk", NULL); in spear3xx_clk_init()
614 clk = clk_register_gate(NULL, "ras_apb_clk", "apb_clk", 0, RAS_CLK_ENB, in spear3xx_clk_init()
616 clk_register_clkdev(clk, "ras_apb_clk", NULL); in spear3xx_clk_init()
617 ras_apb_clk = clk; in spear3xx_clk_init()
619 clk = clk_register_gate(NULL, "ras_32k_clk", "osc_32k_clk", 0, in spear3xx_clk_init()
621 clk_register_clkdev(clk, "ras_32k_clk", NULL); in spear3xx_clk_init()
623 clk = clk_register_gate(NULL, "ras_24m_clk", "osc_24m_clk", 0, in spear3xx_clk_init()
625 clk_register_clkdev(clk, "ras_24m_clk", NULL); in spear3xx_clk_init()
627 clk = clk_register_gate(NULL, "ras_pll1_clk", "pll1_clk", 0, in spear3xx_clk_init()
629 clk_register_clkdev(clk, "ras_pll1_clk", NULL); in spear3xx_clk_init()
631 clk = clk_register_gate(NULL, "ras_pll2_clk", "pll2_clk", 0, in spear3xx_clk_init()
633 clk_register_clkdev(clk, "ras_pll2_clk", NULL); in spear3xx_clk_init()
635 clk = clk_register_gate(NULL, "ras_pll3_clk", "pll3_clk", 0, in spear3xx_clk_init()
637 clk_register_clkdev(clk, "ras_pll3_clk", NULL); in spear3xx_clk_init()
639 clk = clk_register_gate(NULL, "ras_syn0_gclk", "gen0_syn_gclk", in spear3xx_clk_init()
642 clk_register_clkdev(clk, "ras_syn0_gclk", NULL); in spear3xx_clk_init()
644 clk = clk_register_gate(NULL, "ras_syn1_gclk", "gen1_syn_gclk", in spear3xx_clk_init()
647 clk_register_clkdev(clk, "ras_syn1_gclk", NULL); in spear3xx_clk_init()
649 clk = clk_register_gate(NULL, "ras_syn2_gclk", "gen2_syn_gclk", in spear3xx_clk_init()
652 clk_register_clkdev(clk, "ras_syn2_gclk", NULL); in spear3xx_clk_init()
654 clk = clk_register_gate(NULL, "ras_syn3_gclk", "gen3_syn_gclk", in spear3xx_clk_init()
657 clk_register_clkdev(clk, "ras_syn3_gclk", NULL); in spear3xx_clk_init()