Lines Matching refs:clk
441 struct clk *clk, *clk1; in spear1340_clk_init() local
443 clk = clk_register_fixed_rate(NULL, "osc_32k_clk", NULL, 0, 32000); in spear1340_clk_init()
444 clk_register_clkdev(clk, "osc_32k_clk", NULL); in spear1340_clk_init()
446 clk = clk_register_fixed_rate(NULL, "osc_24m_clk", NULL, 0, 24000000); in spear1340_clk_init()
447 clk_register_clkdev(clk, "osc_24m_clk", NULL); in spear1340_clk_init()
449 clk = clk_register_fixed_rate(NULL, "osc_25m_clk", NULL, 0, 25000000); in spear1340_clk_init()
450 clk_register_clkdev(clk, "osc_25m_clk", NULL); in spear1340_clk_init()
452 clk = clk_register_fixed_rate(NULL, "gmii_pad_clk", NULL, 0, 125000000); in spear1340_clk_init()
453 clk_register_clkdev(clk, "gmii_pad_clk", NULL); in spear1340_clk_init()
455 clk = clk_register_fixed_rate(NULL, "i2s_src_pad_clk", NULL, 0, in spear1340_clk_init()
457 clk_register_clkdev(clk, "i2s_src_pad_clk", NULL); in spear1340_clk_init()
460 clk = clk_register_gate(NULL, "rtc-spear", "osc_32k_clk", 0, in spear1340_clk_init()
463 clk_register_clkdev(clk, NULL, "e0580000.rtc"); in spear1340_clk_init()
467 clk = clk_register_mux(NULL, "vco1_mclk", vco_parents, in spear1340_clk_init()
471 clk_register_clkdev(clk, "vco1_mclk", NULL); in spear1340_clk_init()
472 clk = clk_register_vco_pll("vco1_clk", "pll1_clk", NULL, "vco1_mclk", 0, in spear1340_clk_init()
475 clk_register_clkdev(clk, "vco1_clk", NULL); in spear1340_clk_init()
478 clk = clk_register_mux(NULL, "vco2_mclk", vco_parents, in spear1340_clk_init()
482 clk_register_clkdev(clk, "vco2_mclk", NULL); in spear1340_clk_init()
483 clk = clk_register_vco_pll("vco2_clk", "pll2_clk", NULL, "vco2_mclk", 0, in spear1340_clk_init()
486 clk_register_clkdev(clk, "vco2_clk", NULL); in spear1340_clk_init()
489 clk = clk_register_mux(NULL, "vco3_mclk", vco_parents, in spear1340_clk_init()
493 clk_register_clkdev(clk, "vco3_mclk", NULL); in spear1340_clk_init()
494 clk = clk_register_vco_pll("vco3_clk", "pll3_clk", NULL, "vco3_mclk", 0, in spear1340_clk_init()
497 clk_register_clkdev(clk, "vco3_clk", NULL); in spear1340_clk_init()
500 clk = clk_register_vco_pll("vco4_clk", "pll4_clk", NULL, "osc_24m_clk", in spear1340_clk_init()
503 clk_register_clkdev(clk, "vco4_clk", NULL); in spear1340_clk_init()
506 clk = clk_register_fixed_rate(NULL, "pll5_clk", "osc_24m_clk", 0, in spear1340_clk_init()
508 clk_register_clkdev(clk, "pll5_clk", NULL); in spear1340_clk_init()
510 clk = clk_register_fixed_rate(NULL, "pll6_clk", "osc_25m_clk", 0, in spear1340_clk_init()
512 clk_register_clkdev(clk, "pll6_clk", NULL); in spear1340_clk_init()
515 clk = clk_register_fixed_factor(NULL, "vco1div2_clk", "vco1_clk", 0, 1, in spear1340_clk_init()
517 clk_register_clkdev(clk, "vco1div2_clk", NULL); in spear1340_clk_init()
519 clk = clk_register_fixed_factor(NULL, "vco1div4_clk", "vco1_clk", 0, 1, in spear1340_clk_init()
521 clk_register_clkdev(clk, "vco1div4_clk", NULL); in spear1340_clk_init()
523 clk = clk_register_fixed_factor(NULL, "vco2div2_clk", "vco2_clk", 0, 1, in spear1340_clk_init()
525 clk_register_clkdev(clk, "vco2div2_clk", NULL); in spear1340_clk_init()
527 clk = clk_register_fixed_factor(NULL, "vco3div2_clk", "vco3_clk", 0, 1, in spear1340_clk_init()
529 clk_register_clkdev(clk, "vco3div2_clk", NULL); in spear1340_clk_init()
534 clk = clk_register_gate(NULL, "thermal_gclk", "thermal_clk", 0, in spear1340_clk_init()
537 clk_register_clkdev(clk, NULL, "e07008c4.thermal"); in spear1340_clk_init()
540 clk = clk_register_fixed_factor(NULL, "ddr_clk", "pll4_clk", 0, 1, in spear1340_clk_init()
542 clk_register_clkdev(clk, "ddr_clk", NULL); in spear1340_clk_init()
545 clk = clk_register_frac("sys_syn_clk", "vco1div2_clk", 0, in spear1340_clk_init()
548 clk_register_clkdev(clk, "sys_syn_clk", NULL); in spear1340_clk_init()
550 clk = clk_register_frac("amba_syn_clk", "vco1div2_clk", 0, in spear1340_clk_init()
553 clk_register_clkdev(clk, "amba_syn_clk", NULL); in spear1340_clk_init()
555 clk = clk_register_mux(NULL, "sys_mclk", sys_parents, in spear1340_clk_init()
559 clk_register_clkdev(clk, "sys_mclk", NULL); in spear1340_clk_init()
561 clk = clk_register_fixed_factor(NULL, "cpu_clk", "sys_mclk", 0, 1, in spear1340_clk_init()
563 clk_register_clkdev(clk, "cpu_clk", NULL); in spear1340_clk_init()
565 clk = clk_register_fixed_factor(NULL, "cpu_div3_clk", "cpu_clk", 0, 1, in spear1340_clk_init()
567 clk_register_clkdev(clk, "cpu_div3_clk", NULL); in spear1340_clk_init()
569 clk = clk_register_fixed_factor(NULL, "wdt_clk", "cpu_clk", 0, 1, in spear1340_clk_init()
571 clk_register_clkdev(clk, NULL, "ec800620.wdt"); in spear1340_clk_init()
573 clk = clk_register_fixed_factor(NULL, "smp_twd_clk", "cpu_clk", 0, 1, in spear1340_clk_init()
575 clk_register_clkdev(clk, NULL, "smp_twd"); in spear1340_clk_init()
577 clk = clk_register_mux(NULL, "ahb_clk", ahb_parents, in spear1340_clk_init()
581 clk_register_clkdev(clk, "ahb_clk", NULL); in spear1340_clk_init()
583 clk = clk_register_fixed_factor(NULL, "apb_clk", "ahb_clk", 0, 1, in spear1340_clk_init()
585 clk_register_clkdev(clk, "apb_clk", NULL); in spear1340_clk_init()
588 clk = clk_register_mux(NULL, "gpt0_mclk", gpt_parents, in spear1340_clk_init()
592 clk_register_clkdev(clk, "gpt0_mclk", NULL); in spear1340_clk_init()
593 clk = clk_register_gate(NULL, "gpt0_clk", "gpt0_mclk", 0, in spear1340_clk_init()
596 clk_register_clkdev(clk, NULL, "gpt0"); in spear1340_clk_init()
598 clk = clk_register_mux(NULL, "gpt1_mclk", gpt_parents, in spear1340_clk_init()
602 clk_register_clkdev(clk, "gpt1_mclk", NULL); in spear1340_clk_init()
603 clk = clk_register_gate(NULL, "gpt1_clk", "gpt1_mclk", 0, in spear1340_clk_init()
606 clk_register_clkdev(clk, NULL, "gpt1"); in spear1340_clk_init()
608 clk = clk_register_mux(NULL, "gpt2_mclk", gpt_parents, in spear1340_clk_init()
612 clk_register_clkdev(clk, "gpt2_mclk", NULL); in spear1340_clk_init()
613 clk = clk_register_gate(NULL, "gpt2_clk", "gpt2_mclk", 0, in spear1340_clk_init()
616 clk_register_clkdev(clk, NULL, "gpt2"); in spear1340_clk_init()
618 clk = clk_register_mux(NULL, "gpt3_mclk", gpt_parents, in spear1340_clk_init()
622 clk_register_clkdev(clk, "gpt3_mclk", NULL); in spear1340_clk_init()
623 clk = clk_register_gate(NULL, "gpt3_clk", "gpt3_mclk", 0, in spear1340_clk_init()
626 clk_register_clkdev(clk, NULL, "gpt3"); in spear1340_clk_init()
629 clk = clk_register_aux("uart0_syn_clk", "uart0_syn_gclk", in spear1340_clk_init()
632 clk_register_clkdev(clk, "uart0_syn_clk", NULL); in spear1340_clk_init()
635 clk = clk_register_mux(NULL, "uart0_mclk", uart0_parents, in spear1340_clk_init()
640 clk_register_clkdev(clk, "uart0_mclk", NULL); in spear1340_clk_init()
642 clk = clk_register_gate(NULL, "uart0_clk", "uart0_mclk", in spear1340_clk_init()
645 clk_register_clkdev(clk, NULL, "e0000000.serial"); in spear1340_clk_init()
647 clk = clk_register_aux("uart1_syn_clk", "uart1_syn_gclk", in spear1340_clk_init()
650 clk_register_clkdev(clk, "uart1_syn_clk", NULL); in spear1340_clk_init()
653 clk = clk_register_mux(NULL, "uart1_mclk", uart1_parents, in spear1340_clk_init()
657 clk_register_clkdev(clk, "uart1_mclk", NULL); in spear1340_clk_init()
659 clk = clk_register_gate(NULL, "uart1_clk", "uart1_mclk", 0, in spear1340_clk_init()
662 clk_register_clkdev(clk, NULL, "b4100000.serial"); in spear1340_clk_init()
664 clk = clk_register_aux("sdhci_syn_clk", "sdhci_syn_gclk", in spear1340_clk_init()
667 clk_register_clkdev(clk, "sdhci_syn_clk", NULL); in spear1340_clk_init()
670 clk = clk_register_gate(NULL, "sdhci_clk", "sdhci_syn_gclk", in spear1340_clk_init()
673 clk_register_clkdev(clk, NULL, "b3000000.sdhci"); in spear1340_clk_init()
675 clk = clk_register_aux("cfxd_syn_clk", "cfxd_syn_gclk", "vco1div2_clk", in spear1340_clk_init()
678 clk_register_clkdev(clk, "cfxd_syn_clk", NULL); in spear1340_clk_init()
681 clk = clk_register_gate(NULL, "cfxd_clk", "cfxd_syn_gclk", in spear1340_clk_init()
684 clk_register_clkdev(clk, NULL, "b2800000.cf"); in spear1340_clk_init()
685 clk_register_clkdev(clk, NULL, "arasan_xd"); in spear1340_clk_init()
687 clk = clk_register_aux("c3_syn_clk", "c3_syn_gclk", "vco1div2_clk", 0, in spear1340_clk_init()
690 clk_register_clkdev(clk, "c3_syn_clk", NULL); in spear1340_clk_init()
693 clk = clk_register_mux(NULL, "c3_mclk", c3_parents, in spear1340_clk_init()
698 clk_register_clkdev(clk, "c3_mclk", NULL); in spear1340_clk_init()
700 clk = clk_register_gate(NULL, "c3_clk", "c3_mclk", CLK_SET_RATE_PARENT, in spear1340_clk_init()
703 clk_register_clkdev(clk, NULL, "e1800000.c3"); in spear1340_clk_init()
706 clk = clk_register_mux(NULL, "phy_input_mclk", gmac_phy_input_parents, in spear1340_clk_init()
711 clk_register_clkdev(clk, "phy_input_mclk", NULL); in spear1340_clk_init()
713 clk = clk_register_aux("phy_syn_clk", "phy_syn_gclk", "phy_input_mclk", in spear1340_clk_init()
716 clk_register_clkdev(clk, "phy_syn_clk", NULL); in spear1340_clk_init()
719 clk = clk_register_mux(NULL, "phy_mclk", gmac_phy_parents, in spear1340_clk_init()
723 clk_register_clkdev(clk, "stmmacphy.0", NULL); in spear1340_clk_init()
726 clk = clk_register_mux(NULL, "clcd_syn_mclk", clcd_synth_parents, in spear1340_clk_init()
731 clk_register_clkdev(clk, "clcd_syn_mclk", NULL); in spear1340_clk_init()
733 clk = clk_register_frac("clcd_syn_clk", "clcd_syn_mclk", 0, in spear1340_clk_init()
736 clk_register_clkdev(clk, "clcd_syn_clk", NULL); in spear1340_clk_init()
738 clk = clk_register_mux(NULL, "clcd_pixel_mclk", clcd_pixel_parents, in spear1340_clk_init()
743 clk_register_clkdev(clk, "clcd_pixel_mclk", NULL); in spear1340_clk_init()
745 clk = clk_register_gate(NULL, "clcd_clk", "clcd_pixel_mclk", 0, in spear1340_clk_init()
748 clk_register_clkdev(clk, NULL, "e1000000.clcd"); in spear1340_clk_init()
751 clk = clk_register_mux(NULL, "i2s_src_mclk", i2s_src_parents, in spear1340_clk_init()
755 clk_register_clkdev(clk, "i2s_src_mclk", NULL); in spear1340_clk_init()
757 clk = clk_register_aux("i2s_prs1_clk", NULL, "i2s_src_mclk", in spear1340_clk_init()
761 clk_register_clkdev(clk, "i2s_prs1_clk", NULL); in spear1340_clk_init()
763 clk = clk_register_mux(NULL, "i2s_ref_mclk", i2s_ref_parents, in spear1340_clk_init()
768 clk_register_clkdev(clk, "i2s_ref_mclk", NULL); in spear1340_clk_init()
770 clk = clk_register_gate(NULL, "i2s_ref_pad_clk", "i2s_ref_mclk", 0, in spear1340_clk_init()
773 clk_register_clkdev(clk, "i2s_ref_pad_clk", NULL); in spear1340_clk_init()
775 clk = clk_register_aux("i2s_sclk_clk", "i2s_sclk_gclk", "i2s_ref_mclk", in spear1340_clk_init()
779 clk_register_clkdev(clk, "i2s_sclk_clk", NULL); in spear1340_clk_init()
783 clk = clk_register_gate(NULL, "i2c0_clk", "ahb_clk", 0, in spear1340_clk_init()
786 clk_register_clkdev(clk, NULL, "e0280000.i2c"); in spear1340_clk_init()
788 clk = clk_register_gate(NULL, "i2c1_clk", "ahb_clk", 0, in spear1340_clk_init()
791 clk_register_clkdev(clk, NULL, "b4000000.i2c"); in spear1340_clk_init()
793 clk = clk_register_gate(NULL, "dma_clk", "ahb_clk", 0, in spear1340_clk_init()
796 clk_register_clkdev(clk, NULL, "ea800000.dma"); in spear1340_clk_init()
797 clk_register_clkdev(clk, NULL, "eb000000.dma"); in spear1340_clk_init()
799 clk = clk_register_gate(NULL, "gmac_clk", "ahb_clk", 0, in spear1340_clk_init()
802 clk_register_clkdev(clk, NULL, "e2000000.eth"); in spear1340_clk_init()
804 clk = clk_register_gate(NULL, "fsmc_clk", "ahb_clk", 0, in spear1340_clk_init()
807 clk_register_clkdev(clk, NULL, "b0000000.flash"); in spear1340_clk_init()
809 clk = clk_register_gate(NULL, "smi_clk", "ahb_clk", 0, in spear1340_clk_init()
812 clk_register_clkdev(clk, NULL, "ea000000.flash"); in spear1340_clk_init()
814 clk = clk_register_gate(NULL, "usbh0_clk", "ahb_clk", 0, in spear1340_clk_init()
817 clk_register_clkdev(clk, NULL, "e4000000.ohci"); in spear1340_clk_init()
818 clk_register_clkdev(clk, NULL, "e4800000.ehci"); in spear1340_clk_init()
820 clk = clk_register_gate(NULL, "usbh1_clk", "ahb_clk", 0, in spear1340_clk_init()
823 clk_register_clkdev(clk, NULL, "e5000000.ohci"); in spear1340_clk_init()
824 clk_register_clkdev(clk, NULL, "e5800000.ehci"); in spear1340_clk_init()
826 clk = clk_register_gate(NULL, "uoc_clk", "ahb_clk", 0, in spear1340_clk_init()
829 clk_register_clkdev(clk, NULL, "e3800000.otg"); in spear1340_clk_init()
831 clk = clk_register_gate(NULL, "pcie_sata_clk", "ahb_clk", 0, in spear1340_clk_init()
834 clk_register_clkdev(clk, NULL, "b1000000.pcie"); in spear1340_clk_init()
835 clk_register_clkdev(clk, NULL, "b1000000.ahci"); in spear1340_clk_init()
837 clk = clk_register_gate(NULL, "sysram0_clk", "ahb_clk", 0, in spear1340_clk_init()
840 clk_register_clkdev(clk, "sysram0_clk", NULL); in spear1340_clk_init()
842 clk = clk_register_gate(NULL, "sysram1_clk", "ahb_clk", 0, in spear1340_clk_init()
845 clk_register_clkdev(clk, "sysram1_clk", NULL); in spear1340_clk_init()
847 clk = clk_register_aux("adc_syn_clk", "adc_syn_gclk", "ahb_clk", in spear1340_clk_init()
850 clk_register_clkdev(clk, "adc_syn_clk", NULL); in spear1340_clk_init()
853 clk = clk_register_gate(NULL, "adc_clk", "adc_syn_gclk", in spear1340_clk_init()
856 clk_register_clkdev(clk, NULL, "e0080000.adc"); in spear1340_clk_init()
859 clk = clk_register_gate(NULL, "ssp_clk", "apb_clk", 0, in spear1340_clk_init()
862 clk_register_clkdev(clk, NULL, "e0100000.spi"); in spear1340_clk_init()
864 clk = clk_register_gate(NULL, "gpio0_clk", "apb_clk", 0, in spear1340_clk_init()
867 clk_register_clkdev(clk, NULL, "e0600000.gpio"); in spear1340_clk_init()
869 clk = clk_register_gate(NULL, "gpio1_clk", "apb_clk", 0, in spear1340_clk_init()
872 clk_register_clkdev(clk, NULL, "e0680000.gpio"); in spear1340_clk_init()
874 clk = clk_register_gate(NULL, "i2s_play_clk", "apb_clk", 0, in spear1340_clk_init()
877 clk_register_clkdev(clk, NULL, "b2400000.i2s-play"); in spear1340_clk_init()
879 clk = clk_register_gate(NULL, "i2s_rec_clk", "apb_clk", 0, in spear1340_clk_init()
882 clk_register_clkdev(clk, NULL, "b2000000.i2s-rec"); in spear1340_clk_init()
884 clk = clk_register_gate(NULL, "kbd_clk", "apb_clk", 0, in spear1340_clk_init()
887 clk_register_clkdev(clk, NULL, "e0300000.kbd"); in spear1340_clk_init()
890 clk = clk_register_mux(NULL, "gen_syn0_1_mclk", gen_synth0_1_parents, in spear1340_clk_init()
895 clk_register_clkdev(clk, "gen_syn0_1_mclk", NULL); in spear1340_clk_init()
897 clk = clk_register_mux(NULL, "gen_syn2_3_mclk", gen_synth2_3_parents, in spear1340_clk_init()
902 clk_register_clkdev(clk, "gen_syn2_3_mclk", NULL); in spear1340_clk_init()
904 clk = clk_register_frac("gen_syn0_clk", "gen_syn0_1_mclk", 0, in spear1340_clk_init()
907 clk_register_clkdev(clk, "gen_syn0_clk", NULL); in spear1340_clk_init()
909 clk = clk_register_frac("gen_syn1_clk", "gen_syn0_1_mclk", 0, in spear1340_clk_init()
912 clk_register_clkdev(clk, "gen_syn1_clk", NULL); in spear1340_clk_init()
914 clk = clk_register_frac("gen_syn2_clk", "gen_syn2_3_mclk", 0, in spear1340_clk_init()
917 clk_register_clkdev(clk, "gen_syn2_clk", NULL); in spear1340_clk_init()
919 clk = clk_register_frac("gen_syn3_clk", "gen_syn2_3_mclk", 0, in spear1340_clk_init()
922 clk_register_clkdev(clk, "gen_syn3_clk", NULL); in spear1340_clk_init()
924 clk = clk_register_gate(NULL, "mali_clk", "gen_syn3_clk", in spear1340_clk_init()
927 clk_register_clkdev(clk, NULL, "mali"); in spear1340_clk_init()
929 clk = clk_register_gate(NULL, "cec0_clk", "ahb_clk", 0, in spear1340_clk_init()
932 clk_register_clkdev(clk, NULL, "spear_cec.0"); in spear1340_clk_init()
934 clk = clk_register_gate(NULL, "cec1_clk", "ahb_clk", 0, in spear1340_clk_init()
937 clk_register_clkdev(clk, NULL, "spear_cec.1"); in spear1340_clk_init()
939 clk = clk_register_mux(NULL, "spdif_out_mclk", spdif_out_parents, in spear1340_clk_init()
944 clk_register_clkdev(clk, "spdif_out_mclk", NULL); in spear1340_clk_init()
946 clk = clk_register_gate(NULL, "spdif_out_clk", "spdif_out_mclk", in spear1340_clk_init()
949 clk_register_clkdev(clk, NULL, "d0000000.spdif-out"); in spear1340_clk_init()
951 clk = clk_register_mux(NULL, "spdif_in_mclk", spdif_in_parents, in spear1340_clk_init()
956 clk_register_clkdev(clk, "spdif_in_mclk", NULL); in spear1340_clk_init()
958 clk = clk_register_gate(NULL, "spdif_in_clk", "spdif_in_mclk", in spear1340_clk_init()
961 clk_register_clkdev(clk, NULL, "d0100000.spdif-in"); in spear1340_clk_init()
963 clk = clk_register_gate(NULL, "acp_clk", "ahb_clk", 0, in spear1340_clk_init()
966 clk_register_clkdev(clk, NULL, "acp_clk"); in spear1340_clk_init()
968 clk = clk_register_gate(NULL, "plgpio_clk", "ahb_clk", 0, in spear1340_clk_init()
971 clk_register_clkdev(clk, NULL, "e2800000.gpio"); in spear1340_clk_init()
973 clk = clk_register_gate(NULL, "video_dec_clk", "ahb_clk", 0, in spear1340_clk_init()
976 clk_register_clkdev(clk, NULL, "video_dec"); in spear1340_clk_init()
978 clk = clk_register_gate(NULL, "video_enc_clk", "ahb_clk", 0, in spear1340_clk_init()
981 clk_register_clkdev(clk, NULL, "video_enc"); in spear1340_clk_init()
983 clk = clk_register_gate(NULL, "video_in_clk", "ahb_clk", 0, in spear1340_clk_init()
986 clk_register_clkdev(clk, NULL, "spear_vip"); in spear1340_clk_init()
988 clk = clk_register_gate(NULL, "cam0_clk", "ahb_clk", 0, in spear1340_clk_init()
991 clk_register_clkdev(clk, NULL, "d0200000.cam0"); in spear1340_clk_init()
993 clk = clk_register_gate(NULL, "cam1_clk", "ahb_clk", 0, in spear1340_clk_init()
996 clk_register_clkdev(clk, NULL, "d0300000.cam1"); in spear1340_clk_init()
998 clk = clk_register_gate(NULL, "cam2_clk", "ahb_clk", 0, in spear1340_clk_init()
1001 clk_register_clkdev(clk, NULL, "d0400000.cam2"); in spear1340_clk_init()
1003 clk = clk_register_gate(NULL, "cam3_clk", "ahb_clk", 0, in spear1340_clk_init()
1006 clk_register_clkdev(clk, NULL, "d0500000.cam3"); in spear1340_clk_init()
1008 clk = clk_register_gate(NULL, "pwm_clk", "ahb_clk", 0, in spear1340_clk_init()
1011 clk_register_clkdev(clk, NULL, "e0180000.pwm"); in spear1340_clk_init()