Lines Matching +full:clk +full:- +full:div
2 * arch/arm/mach-spear13xx/spear1340_clock.c
19 #include "clk.h"
178 /* vco-pll4 rate configuration table, in ascending order of rates */
191 {.div = 0x073A8}, /* for vco1div2 = 600 MHz */
192 {.div = 0x06062}, /* for vco1div2 = 500 MHz */
193 {.div = 0x04D1B}, /* for vco1div2 = 400 MHz */
194 {.div = 0x04000}, /* for vco1div2 = 332 MHz */
195 {.div = 0x03031}, /* for vco1div2 = 250 MHz */
196 {.div = 0x0268D}, /* for vco1div2 = 200 MHz */
208 * --------------------------------------------------------------------
209 * vco1div2(Mhz) fout(Mhz) cpuclk = fout/2 div
210 * --------------------------------------------------------------------
215 * --------------------------------------------------------------------
221 * --------------------------------------------------------------------
227 * --------------------------------------------------------------------
233 * --------------------------------------------------------------------
239 * --------------------------------------------------------------------
243 {.div = 0x08000},
244 {.div = 0x06a38},
245 {.div = 0x06666},
246 {.div = 0x06000},
247 {.div = 0x054FD},
248 {.div = 0x05000},
249 {.div = 0x04D18},
250 {.div = 0x04CCE},
251 {.div = 0x04000},
252 {.div = 0x039D5},
253 {.div = 0x0351E},
254 {.div = 0x03333},
255 {.div = 0x03031},
256 {.div = 0x03000},
257 {.div = 0x02A7E},
258 {.div = 0x02800},
259 {.div = 0x0268D},
260 {.div = 0x02666},
261 {.div = 0x02000},
294 /* For gmac phy input clk */
303 {.div = 0x18000}, /* 25 Mhz , for vc01div4 = 300 MHz*/
304 {.div = 0x1638E}, /* 27 Mhz , for vc01div4 = 300 MHz*/
305 {.div = 0x14000}, /* 25 Mhz , for vc01div4 = 250 MHz*/
306 {.div = 0x1284B}, /* 27 Mhz , for vc01div4 = 250 MHz*/
307 {.div = 0x0D8D3}, /* 58 Mhz , for vco1div4 = 393 MHz */
308 {.div = 0x0B72C}, /* 58 Mhz , for vco1div4 = 332 MHz */
309 {.div = 0x0A584}, /* 58 Mhz , for vco1div4 = 300 MHz */
310 {.div = 0x093B1}, /* 65 Mhz , for vc01div4 = 300 MHz*/
311 {.div = 0x089EE}, /* 58 Mhz , for vc01div4 = 250 MHz*/
312 {.div = 0x081BA}, /* 74 Mhz , for vc01div4 = 300 MHz*/
313 {.div = 0x07BA0}, /* 65 Mhz , for vc01div4 = 250 MHz*/
314 {.div = 0x06f1C}, /* 72 Mhz , for vc01div4 = 250 MHz*/
315 {.div = 0x06E58}, /* 58 Mhz , for vco1div4 = 200 MHz */
316 {.div = 0x06c1B}, /* 74 Mhz , for vc01div4 = 250 MHz*/
317 {.div = 0x058E3}, /* 108 Mhz , for vc01div4 = 300 MHz*/
318 {.div = 0x04A12}, /* 108 Mhz , for vc01div4 = 250 MHz*/
319 {.div = 0x040A5}, /* 148.5 Mhz , for vc01div4 = 300 MHz*/
320 {.div = 0x0378E}, /* 144 Mhz , for vc01div4 = 250 MHz*/
321 {.div = 0x0360D}, /* 148 Mhz , for vc01div4 = 250 MHz*/
322 {.div = 0x035E0}, /* 148.5 MHz, for vc01div4 = 250 MHz*/
352 /* For parent clk = 49.152 MHz */
359 * with parent clk = 49.152, freq gen is 8.192 MHz, smp freq = 32Khz
360 * with parent clk = 12.288, freq gen is 2.048 MHz, smp freq = 8Khz
364 /* For parent clk = 49.152 MHz */
388 {.div = 0x1A92B}, /* 22.5792 MHz for vco1div4=300 MHz*/
389 {.div = 0x186A0}, /* 24.576 MHz for vco1div4=300 MHz*/
390 {.div = 0x18000}, /* 25 MHz for vco1div4=300 MHz*/
391 {.div = 0x1624E}, /* 22.5792 MHz for vco1div4=250 MHz*/
392 {.div = 0x14585}, /* 24.576 MHz for vco1div4=250 MHz*/
393 {.div = 0x14000}, /* 25 MHz for vco1div4=250 MHz*/
394 {.div = 0x0D495}, /* 45.1584 MHz for vco1div4=300 MHz*/
395 {.div = 0x0C000}, /* 50 MHz for vco1div4=300 MHz*/
396 {.div = 0x0B127}, /* 45.1584 MHz for vco1div4=250 MHz*/
397 {.div = 0x0A000}, /* 50 MHz for vco1div4=250 MHz*/
398 {.div = 0x07530}, /* 81.92 MHz for vco1div4=300 MHz*/
399 {.div = 0x061A8}, /* 81.92 MHz for vco1div4=250 MHz*/
400 {.div = 0x06000}, /* 100 MHz for vco1div4=300 MHz*/
401 {.div = 0x05000}, /* 100 MHz for vco1div4=250 MHz*/
402 {.div = 0x03000}, /* 200 MHz for vco1div4=300 MHz*/
403 {.div = 0x02DB6}, /* 210 MHz for vco1div4=300 MHz*/
404 {.div = 0x02BA2}, /* 220 MHz for vco1div4=300 MHz*/
405 {.div = 0x029BD}, /* 230 MHz for vco1div4=300 MHz*/
406 {.div = 0x02800}, /* 200 MHz for vco1div4=250 MHz*/
407 {.div = 0x02666}, /* 250 MHz for vco1div4=300 MHz*/
408 {.div = 0x02620}, /* 210 MHz for vco1div4=250 MHz*/
409 {.div = 0x02460}, /* 220 MHz for vco1div4=250 MHz*/
410 {.div = 0x022C0}, /* 230 MHz for vco1div4=250 MHz*/
411 {.div = 0x02160}, /* 240 MHz for vco1div4=250 MHz*/
412 {.div = 0x02000}, /* 250 MHz for vco1div4=250 MHz*/
444 struct clk *clk, *clk1; in spear1340_clk_init() local
446 clk = clk_register_fixed_rate(NULL, "osc_32k_clk", NULL, 0, 32000); in spear1340_clk_init()
447 clk_register_clkdev(clk, "osc_32k_clk", NULL); in spear1340_clk_init()
449 clk = clk_register_fixed_rate(NULL, "osc_24m_clk", NULL, 0, 24000000); in spear1340_clk_init()
450 clk_register_clkdev(clk, "osc_24m_clk", NULL); in spear1340_clk_init()
452 clk = clk_register_fixed_rate(NULL, "osc_25m_clk", NULL, 0, 25000000); in spear1340_clk_init()
453 clk_register_clkdev(clk, "osc_25m_clk", NULL); in spear1340_clk_init()
455 clk = clk_register_fixed_rate(NULL, "gmii_pad_clk", NULL, 0, 125000000); in spear1340_clk_init()
456 clk_register_clkdev(clk, "gmii_pad_clk", NULL); in spear1340_clk_init()
458 clk = clk_register_fixed_rate(NULL, "i2s_src_pad_clk", NULL, 0, in spear1340_clk_init()
460 clk_register_clkdev(clk, "i2s_src_pad_clk", NULL); in spear1340_clk_init()
462 /* clock derived from 32 KHz osc clk */ in spear1340_clk_init()
463 clk = clk_register_gate(NULL, "rtc-spear", "osc_32k_clk", 0, in spear1340_clk_init()
466 clk_register_clkdev(clk, NULL, "e0580000.rtc"); in spear1340_clk_init()
468 /* clock derived from 24 or 25 MHz osc clk */ in spear1340_clk_init()
469 /* vco-pll */ in spear1340_clk_init()
470 clk = clk_register_mux(NULL, "vco1_mclk", vco_parents, in spear1340_clk_init()
474 clk_register_clkdev(clk, "vco1_mclk", NULL); in spear1340_clk_init()
475 clk = clk_register_vco_pll("vco1_clk", "pll1_clk", NULL, "vco1_mclk", 0, in spear1340_clk_init()
478 clk_register_clkdev(clk, "vco1_clk", NULL); in spear1340_clk_init()
481 clk = clk_register_mux(NULL, "vco2_mclk", vco_parents, in spear1340_clk_init()
485 clk_register_clkdev(clk, "vco2_mclk", NULL); in spear1340_clk_init()
486 clk = clk_register_vco_pll("vco2_clk", "pll2_clk", NULL, "vco2_mclk", 0, in spear1340_clk_init()
489 clk_register_clkdev(clk, "vco2_clk", NULL); in spear1340_clk_init()
492 clk = clk_register_mux(NULL, "vco3_mclk", vco_parents, in spear1340_clk_init()
496 clk_register_clkdev(clk, "vco3_mclk", NULL); in spear1340_clk_init()
497 clk = clk_register_vco_pll("vco3_clk", "pll3_clk", NULL, "vco3_mclk", 0, in spear1340_clk_init()
500 clk_register_clkdev(clk, "vco3_clk", NULL); in spear1340_clk_init()
503 clk = clk_register_vco_pll("vco4_clk", "pll4_clk", NULL, "osc_24m_clk", in spear1340_clk_init()
506 clk_register_clkdev(clk, "vco4_clk", NULL); in spear1340_clk_init()
509 clk = clk_register_fixed_rate(NULL, "pll5_clk", "osc_24m_clk", 0, in spear1340_clk_init()
511 clk_register_clkdev(clk, "pll5_clk", NULL); in spear1340_clk_init()
513 clk = clk_register_fixed_rate(NULL, "pll6_clk", "osc_25m_clk", 0, in spear1340_clk_init()
515 clk_register_clkdev(clk, "pll6_clk", NULL); in spear1340_clk_init()
517 /* vco div n clocks */ in spear1340_clk_init()
518 clk = clk_register_fixed_factor(NULL, "vco1div2_clk", "vco1_clk", 0, 1, in spear1340_clk_init()
520 clk_register_clkdev(clk, "vco1div2_clk", NULL); in spear1340_clk_init()
522 clk = clk_register_fixed_factor(NULL, "vco1div4_clk", "vco1_clk", 0, 1, in spear1340_clk_init()
524 clk_register_clkdev(clk, "vco1div4_clk", NULL); in spear1340_clk_init()
526 clk = clk_register_fixed_factor(NULL, "vco2div2_clk", "vco2_clk", 0, 1, in spear1340_clk_init()
528 clk_register_clkdev(clk, "vco2div2_clk", NULL); in spear1340_clk_init()
530 clk = clk_register_fixed_factor(NULL, "vco3div2_clk", "vco3_clk", 0, 1, in spear1340_clk_init()
532 clk_register_clkdev(clk, "vco3div2_clk", NULL); in spear1340_clk_init()
537 clk = clk_register_gate(NULL, "thermal_gclk", "thermal_clk", 0, in spear1340_clk_init()
540 clk_register_clkdev(clk, NULL, "e07008c4.thermal"); in spear1340_clk_init()
542 /* clock derived from pll4 clk */ in spear1340_clk_init()
543 clk = clk_register_fixed_factor(NULL, "ddr_clk", "pll4_clk", 0, 1, in spear1340_clk_init()
545 clk_register_clkdev(clk, "ddr_clk", NULL); in spear1340_clk_init()
547 /* clock derived from pll1 clk */ in spear1340_clk_init()
548 clk = clk_register_frac("sys_syn_clk", "vco1div2_clk", 0, in spear1340_clk_init()
551 clk_register_clkdev(clk, "sys_syn_clk", NULL); in spear1340_clk_init()
553 clk = clk_register_frac("amba_syn_clk", "vco1div2_clk", 0, in spear1340_clk_init()
556 clk_register_clkdev(clk, "amba_syn_clk", NULL); in spear1340_clk_init()
558 clk = clk_register_mux(NULL, "sys_mclk", sys_parents, in spear1340_clk_init()
562 clk_register_clkdev(clk, "sys_mclk", NULL); in spear1340_clk_init()
564 clk = clk_register_fixed_factor(NULL, "cpu_clk", "sys_mclk", 0, 1, in spear1340_clk_init()
566 clk_register_clkdev(clk, "cpu_clk", NULL); in spear1340_clk_init()
568 clk = clk_register_fixed_factor(NULL, "cpu_div3_clk", "cpu_clk", 0, 1, in spear1340_clk_init()
570 clk_register_clkdev(clk, "cpu_div3_clk", NULL); in spear1340_clk_init()
572 clk = clk_register_fixed_factor(NULL, "wdt_clk", "cpu_clk", 0, 1, in spear1340_clk_init()
574 clk_register_clkdev(clk, NULL, "ec800620.wdt"); in spear1340_clk_init()
576 clk = clk_register_fixed_factor(NULL, "smp_twd_clk", "cpu_clk", 0, 1, in spear1340_clk_init()
578 clk_register_clkdev(clk, NULL, "smp_twd"); in spear1340_clk_init()
580 clk = clk_register_mux(NULL, "ahb_clk", ahb_parents, in spear1340_clk_init()
584 clk_register_clkdev(clk, "ahb_clk", NULL); in spear1340_clk_init()
586 clk = clk_register_fixed_factor(NULL, "apb_clk", "ahb_clk", 0, 1, in spear1340_clk_init()
588 clk_register_clkdev(clk, "apb_clk", NULL); in spear1340_clk_init()
591 clk = clk_register_mux(NULL, "gpt0_mclk", gpt_parents, in spear1340_clk_init()
595 clk_register_clkdev(clk, "gpt0_mclk", NULL); in spear1340_clk_init()
596 clk = clk_register_gate(NULL, "gpt0_clk", "gpt0_mclk", 0, in spear1340_clk_init()
599 clk_register_clkdev(clk, NULL, "gpt0"); in spear1340_clk_init()
601 clk = clk_register_mux(NULL, "gpt1_mclk", gpt_parents, in spear1340_clk_init()
605 clk_register_clkdev(clk, "gpt1_mclk", NULL); in spear1340_clk_init()
606 clk = clk_register_gate(NULL, "gpt1_clk", "gpt1_mclk", 0, in spear1340_clk_init()
609 clk_register_clkdev(clk, NULL, "gpt1"); in spear1340_clk_init()
611 clk = clk_register_mux(NULL, "gpt2_mclk", gpt_parents, in spear1340_clk_init()
615 clk_register_clkdev(clk, "gpt2_mclk", NULL); in spear1340_clk_init()
616 clk = clk_register_gate(NULL, "gpt2_clk", "gpt2_mclk", 0, in spear1340_clk_init()
619 clk_register_clkdev(clk, NULL, "gpt2"); in spear1340_clk_init()
621 clk = clk_register_mux(NULL, "gpt3_mclk", gpt_parents, in spear1340_clk_init()
625 clk_register_clkdev(clk, "gpt3_mclk", NULL); in spear1340_clk_init()
626 clk = clk_register_gate(NULL, "gpt3_clk", "gpt3_mclk", 0, in spear1340_clk_init()
629 clk_register_clkdev(clk, NULL, "gpt3"); in spear1340_clk_init()
632 clk = clk_register_aux("uart0_syn_clk", "uart0_syn_gclk", in spear1340_clk_init()
635 clk_register_clkdev(clk, "uart0_syn_clk", NULL); in spear1340_clk_init()
638 clk = clk_register_mux(NULL, "uart0_mclk", uart0_parents, in spear1340_clk_init()
643 clk_register_clkdev(clk, "uart0_mclk", NULL); in spear1340_clk_init()
645 clk = clk_register_gate(NULL, "uart0_clk", "uart0_mclk", in spear1340_clk_init()
648 clk_register_clkdev(clk, NULL, "e0000000.serial"); in spear1340_clk_init()
650 clk = clk_register_aux("uart1_syn_clk", "uart1_syn_gclk", in spear1340_clk_init()
653 clk_register_clkdev(clk, "uart1_syn_clk", NULL); in spear1340_clk_init()
656 clk = clk_register_mux(NULL, "uart1_mclk", uart1_parents, in spear1340_clk_init()
660 clk_register_clkdev(clk, "uart1_mclk", NULL); in spear1340_clk_init()
662 clk = clk_register_gate(NULL, "uart1_clk", "uart1_mclk", 0, in spear1340_clk_init()
665 clk_register_clkdev(clk, NULL, "b4100000.serial"); in spear1340_clk_init()
667 clk = clk_register_aux("sdhci_syn_clk", "sdhci_syn_gclk", in spear1340_clk_init()
670 clk_register_clkdev(clk, "sdhci_syn_clk", NULL); in spear1340_clk_init()
673 clk = clk_register_gate(NULL, "sdhci_clk", "sdhci_syn_gclk", in spear1340_clk_init()
676 clk_register_clkdev(clk, NULL, "b3000000.sdhci"); in spear1340_clk_init()
678 clk = clk_register_aux("cfxd_syn_clk", "cfxd_syn_gclk", "vco1div2_clk", in spear1340_clk_init()
681 clk_register_clkdev(clk, "cfxd_syn_clk", NULL); in spear1340_clk_init()
684 clk = clk_register_gate(NULL, "cfxd_clk", "cfxd_syn_gclk", in spear1340_clk_init()
687 clk_register_clkdev(clk, NULL, "b2800000.cf"); in spear1340_clk_init()
688 clk_register_clkdev(clk, NULL, "arasan_xd"); in spear1340_clk_init()
690 clk = clk_register_aux("c3_syn_clk", "c3_syn_gclk", "vco1div2_clk", 0, in spear1340_clk_init()
693 clk_register_clkdev(clk, "c3_syn_clk", NULL); in spear1340_clk_init()
696 clk = clk_register_mux(NULL, "c3_mclk", c3_parents, in spear1340_clk_init()
701 clk_register_clkdev(clk, "c3_mclk", NULL); in spear1340_clk_init()
703 clk = clk_register_gate(NULL, "c3_clk", "c3_mclk", CLK_SET_RATE_PARENT, in spear1340_clk_init()
706 clk_register_clkdev(clk, NULL, "e1800000.c3"); in spear1340_clk_init()
709 clk = clk_register_mux(NULL, "phy_input_mclk", gmac_phy_input_parents, in spear1340_clk_init()
714 clk_register_clkdev(clk, "phy_input_mclk", NULL); in spear1340_clk_init()
716 clk = clk_register_aux("phy_syn_clk", "phy_syn_gclk", "phy_input_mclk", in spear1340_clk_init()
719 clk_register_clkdev(clk, "phy_syn_clk", NULL); in spear1340_clk_init()
722 clk = clk_register_mux(NULL, "phy_mclk", gmac_phy_parents, in spear1340_clk_init()
726 clk_register_clkdev(clk, "stmmacphy.0", NULL); in spear1340_clk_init()
729 clk = clk_register_mux(NULL, "clcd_syn_mclk", clcd_synth_parents, in spear1340_clk_init()
734 clk_register_clkdev(clk, "clcd_syn_mclk", NULL); in spear1340_clk_init()
736 clk = clk_register_frac("clcd_syn_clk", "clcd_syn_mclk", 0, in spear1340_clk_init()
739 clk_register_clkdev(clk, "clcd_syn_clk", NULL); in spear1340_clk_init()
741 clk = clk_register_mux(NULL, "clcd_pixel_mclk", clcd_pixel_parents, in spear1340_clk_init()
746 clk_register_clkdev(clk, "clcd_pixel_mclk", NULL); in spear1340_clk_init()
748 clk = clk_register_gate(NULL, "clcd_clk", "clcd_pixel_mclk", 0, in spear1340_clk_init()
751 clk_register_clkdev(clk, NULL, "e1000000.clcd"); in spear1340_clk_init()
754 clk = clk_register_mux(NULL, "i2s_src_mclk", i2s_src_parents, in spear1340_clk_init()
758 clk_register_clkdev(clk, "i2s_src_mclk", NULL); in spear1340_clk_init()
760 clk = clk_register_aux("i2s_prs1_clk", NULL, "i2s_src_mclk", in spear1340_clk_init()
764 clk_register_clkdev(clk, "i2s_prs1_clk", NULL); in spear1340_clk_init()
766 clk = clk_register_mux(NULL, "i2s_ref_mclk", i2s_ref_parents, in spear1340_clk_init()
771 clk_register_clkdev(clk, "i2s_ref_mclk", NULL); in spear1340_clk_init()
773 clk = clk_register_gate(NULL, "i2s_ref_pad_clk", "i2s_ref_mclk", 0, in spear1340_clk_init()
776 clk_register_clkdev(clk, "i2s_ref_pad_clk", NULL); in spear1340_clk_init()
778 clk = clk_register_aux("i2s_sclk_clk", "i2s_sclk_gclk", "i2s_ref_mclk", in spear1340_clk_init()
782 clk_register_clkdev(clk, "i2s_sclk_clk", NULL); in spear1340_clk_init()
785 /* clock derived from ahb clk */ in spear1340_clk_init()
786 clk = clk_register_gate(NULL, "i2c0_clk", "ahb_clk", 0, in spear1340_clk_init()
789 clk_register_clkdev(clk, NULL, "e0280000.i2c"); in spear1340_clk_init()
791 clk = clk_register_gate(NULL, "i2c1_clk", "ahb_clk", 0, in spear1340_clk_init()
794 clk_register_clkdev(clk, NULL, "b4000000.i2c"); in spear1340_clk_init()
796 clk = clk_register_gate(NULL, "dma_clk", "ahb_clk", 0, in spear1340_clk_init()
799 clk_register_clkdev(clk, NULL, "ea800000.dma"); in spear1340_clk_init()
800 clk_register_clkdev(clk, NULL, "eb000000.dma"); in spear1340_clk_init()
802 clk = clk_register_gate(NULL, "gmac_clk", "ahb_clk", 0, in spear1340_clk_init()
805 clk_register_clkdev(clk, NULL, "e2000000.eth"); in spear1340_clk_init()
807 clk = clk_register_gate(NULL, "fsmc_clk", "ahb_clk", 0, in spear1340_clk_init()
810 clk_register_clkdev(clk, NULL, "b0000000.flash"); in spear1340_clk_init()
812 clk = clk_register_gate(NULL, "smi_clk", "ahb_clk", 0, in spear1340_clk_init()
815 clk_register_clkdev(clk, NULL, "ea000000.flash"); in spear1340_clk_init()
817 clk = clk_register_gate(NULL, "usbh0_clk", "ahb_clk", 0, in spear1340_clk_init()
820 clk_register_clkdev(clk, NULL, "e4000000.ohci"); in spear1340_clk_init()
821 clk_register_clkdev(clk, NULL, "e4800000.ehci"); in spear1340_clk_init()
823 clk = clk_register_gate(NULL, "usbh1_clk", "ahb_clk", 0, in spear1340_clk_init()
826 clk_register_clkdev(clk, NULL, "e5000000.ohci"); in spear1340_clk_init()
827 clk_register_clkdev(clk, NULL, "e5800000.ehci"); in spear1340_clk_init()
829 clk = clk_register_gate(NULL, "uoc_clk", "ahb_clk", 0, in spear1340_clk_init()
832 clk_register_clkdev(clk, NULL, "e3800000.otg"); in spear1340_clk_init()
834 clk = clk_register_gate(NULL, "pcie_sata_clk", "ahb_clk", 0, in spear1340_clk_init()
837 clk_register_clkdev(clk, NULL, "b1000000.pcie"); in spear1340_clk_init()
838 clk_register_clkdev(clk, NULL, "b1000000.ahci"); in spear1340_clk_init()
840 clk = clk_register_gate(NULL, "sysram0_clk", "ahb_clk", 0, in spear1340_clk_init()
843 clk_register_clkdev(clk, "sysram0_clk", NULL); in spear1340_clk_init()
845 clk = clk_register_gate(NULL, "sysram1_clk", "ahb_clk", 0, in spear1340_clk_init()
848 clk_register_clkdev(clk, "sysram1_clk", NULL); in spear1340_clk_init()
850 clk = clk_register_aux("adc_syn_clk", "adc_syn_gclk", "ahb_clk", in spear1340_clk_init()
853 clk_register_clkdev(clk, "adc_syn_clk", NULL); in spear1340_clk_init()
856 clk = clk_register_gate(NULL, "adc_clk", "adc_syn_gclk", in spear1340_clk_init()
859 clk_register_clkdev(clk, NULL, "e0080000.adc"); in spear1340_clk_init()
861 /* clock derived from apb clk */ in spear1340_clk_init()
862 clk = clk_register_gate(NULL, "ssp_clk", "apb_clk", 0, in spear1340_clk_init()
865 clk_register_clkdev(clk, NULL, "e0100000.spi"); in spear1340_clk_init()
867 clk = clk_register_gate(NULL, "gpio0_clk", "apb_clk", 0, in spear1340_clk_init()
870 clk_register_clkdev(clk, NULL, "e0600000.gpio"); in spear1340_clk_init()
872 clk = clk_register_gate(NULL, "gpio1_clk", "apb_clk", 0, in spear1340_clk_init()
875 clk_register_clkdev(clk, NULL, "e0680000.gpio"); in spear1340_clk_init()
877 clk = clk_register_gate(NULL, "i2s_play_clk", "apb_clk", 0, in spear1340_clk_init()
880 clk_register_clkdev(clk, NULL, "b2400000.i2s-play"); in spear1340_clk_init()
882 clk = clk_register_gate(NULL, "i2s_rec_clk", "apb_clk", 0, in spear1340_clk_init()
885 clk_register_clkdev(clk, NULL, "b2000000.i2s-rec"); in spear1340_clk_init()
887 clk = clk_register_gate(NULL, "kbd_clk", "apb_clk", 0, in spear1340_clk_init()
890 clk_register_clkdev(clk, NULL, "e0300000.kbd"); in spear1340_clk_init()
893 clk = clk_register_mux(NULL, "gen_syn0_1_mclk", gen_synth0_1_parents, in spear1340_clk_init()
898 clk_register_clkdev(clk, "gen_syn0_1_mclk", NULL); in spear1340_clk_init()
900 clk = clk_register_mux(NULL, "gen_syn2_3_mclk", gen_synth2_3_parents, in spear1340_clk_init()
905 clk_register_clkdev(clk, "gen_syn2_3_mclk", NULL); in spear1340_clk_init()
907 clk = clk_register_frac("gen_syn0_clk", "gen_syn0_1_mclk", 0, in spear1340_clk_init()
910 clk_register_clkdev(clk, "gen_syn0_clk", NULL); in spear1340_clk_init()
912 clk = clk_register_frac("gen_syn1_clk", "gen_syn0_1_mclk", 0, in spear1340_clk_init()
915 clk_register_clkdev(clk, "gen_syn1_clk", NULL); in spear1340_clk_init()
917 clk = clk_register_frac("gen_syn2_clk", "gen_syn2_3_mclk", 0, in spear1340_clk_init()
920 clk_register_clkdev(clk, "gen_syn2_clk", NULL); in spear1340_clk_init()
922 clk = clk_register_frac("gen_syn3_clk", "gen_syn2_3_mclk", 0, in spear1340_clk_init()
925 clk_register_clkdev(clk, "gen_syn3_clk", NULL); in spear1340_clk_init()
927 clk = clk_register_gate(NULL, "mali_clk", "gen_syn3_clk", in spear1340_clk_init()
930 clk_register_clkdev(clk, NULL, "mali"); in spear1340_clk_init()
932 clk = clk_register_gate(NULL, "cec0_clk", "ahb_clk", 0, in spear1340_clk_init()
935 clk_register_clkdev(clk, NULL, "spear_cec.0"); in spear1340_clk_init()
937 clk = clk_register_gate(NULL, "cec1_clk", "ahb_clk", 0, in spear1340_clk_init()
940 clk_register_clkdev(clk, NULL, "spear_cec.1"); in spear1340_clk_init()
942 clk = clk_register_mux(NULL, "spdif_out_mclk", spdif_out_parents, in spear1340_clk_init()
947 clk_register_clkdev(clk, "spdif_out_mclk", NULL); in spear1340_clk_init()
949 clk = clk_register_gate(NULL, "spdif_out_clk", "spdif_out_mclk", in spear1340_clk_init()
952 clk_register_clkdev(clk, NULL, "d0000000.spdif-out"); in spear1340_clk_init()
954 clk = clk_register_mux(NULL, "spdif_in_mclk", spdif_in_parents, in spear1340_clk_init()
959 clk_register_clkdev(clk, "spdif_in_mclk", NULL); in spear1340_clk_init()
961 clk = clk_register_gate(NULL, "spdif_in_clk", "spdif_in_mclk", in spear1340_clk_init()
964 clk_register_clkdev(clk, NULL, "d0100000.spdif-in"); in spear1340_clk_init()
966 clk = clk_register_gate(NULL, "acp_clk", "ahb_clk", 0, in spear1340_clk_init()
969 clk_register_clkdev(clk, NULL, "acp_clk"); in spear1340_clk_init()
971 clk = clk_register_gate(NULL, "plgpio_clk", "ahb_clk", 0, in spear1340_clk_init()
974 clk_register_clkdev(clk, NULL, "e2800000.gpio"); in spear1340_clk_init()
976 clk = clk_register_gate(NULL, "video_dec_clk", "ahb_clk", 0, in spear1340_clk_init()
979 clk_register_clkdev(clk, NULL, "video_dec"); in spear1340_clk_init()
981 clk = clk_register_gate(NULL, "video_enc_clk", "ahb_clk", 0, in spear1340_clk_init()
984 clk_register_clkdev(clk, NULL, "video_enc"); in spear1340_clk_init()
986 clk = clk_register_gate(NULL, "video_in_clk", "ahb_clk", 0, in spear1340_clk_init()
989 clk_register_clkdev(clk, NULL, "spear_vip"); in spear1340_clk_init()
991 clk = clk_register_gate(NULL, "cam0_clk", "ahb_clk", 0, in spear1340_clk_init()
994 clk_register_clkdev(clk, NULL, "d0200000.cam0"); in spear1340_clk_init()
996 clk = clk_register_gate(NULL, "cam1_clk", "ahb_clk", 0, in spear1340_clk_init()
999 clk_register_clkdev(clk, NULL, "d0300000.cam1"); in spear1340_clk_init()
1001 clk = clk_register_gate(NULL, "cam2_clk", "ahb_clk", 0, in spear1340_clk_init()
1004 clk_register_clkdev(clk, NULL, "d0400000.cam2"); in spear1340_clk_init()
1006 clk = clk_register_gate(NULL, "cam3_clk", "ahb_clk", 0, in spear1340_clk_init()
1009 clk_register_clkdev(clk, NULL, "d0500000.cam3"); in spear1340_clk_init()
1011 clk = clk_register_gate(NULL, "pwm_clk", "ahb_clk", 0, in spear1340_clk_init()
1014 clk_register_clkdev(clk, NULL, "e0180000.pwm"); in spear1340_clk_init()