• Home
  • Raw
  • Download

Lines Matching refs:clks

74 static struct clk *clks[MPC512x_CLK_LAST_PRIVATE];  variable
404 for (i = 0; i < ARRAY_SIZE(clks); i++) in mpc512x_clk_preset_data()
405 clks[i] = ERR_PTR(-ENODEV); in mpc512x_clk_preset_data()
447 clks[MPC512x_CLK_REF] = mpc512x_clk_factor("ref", "osc", 1, 1); in mpc512x_clk_setup_ref_clock()
448 calc_freq = clk_get_rate(clks[MPC512x_CLK_REF]); in mpc512x_clk_setup_ref_clock()
462 clks[MPC512x_CLK_REF] = mpc512x_clk_fixed("ref", calc_freq); in mpc512x_clk_setup_ref_clock()
651 div = clk_get_rate(clks[MPC512x_CLK_SYS]); in mpc512x_clk_setup_mclk()
652 div /= clk_get_rate(clks[MPC512x_CLK_IPS]); in mpc512x_clk_setup_mclk()
675 clks[clks_idx_int + MCLK_IDX_MUX0] = mpc512x_clk_muxed( in mpc512x_clk_setup_mclk()
682 clks[clks_idx_int + MCLK_IDX_EN0] = mpc512x_clk_gated( in mpc512x_clk_setup_mclk()
685 clks[clks_idx_int + MCLK_IDX_DIV0] = mpc512x_clk_divider( in mpc512x_clk_setup_mclk()
690 clks[clks_idx_pub] = mpc512x_clk_muxed( in mpc512x_clk_setup_mclk()
696 clks[clks_idx_pub] = mpc512x_clk_factor( in mpc512x_clk_setup_mclk()
736 clks[MPC512x_CLK_SYS] = mpc512x_clk_factor("sys", "ref", in mpc512x_clk_setup_clock_tree()
738 clks[MPC512x_CLK_CSB] = mpc512x_clk_factor("csb", "sys", 1, 2); in mpc512x_clk_setup_clock_tree()
739 clks[MPC512x_CLK_IPS] = mpc512x_clk_divtable("ips", "csb", in mpc512x_clk_setup_clock_tree()
744 clks[MPC512x_CLK_DDR_UG] = mpc512x_clk_factor("ddr-ug", "sys", 1, 2); in mpc512x_clk_setup_clock_tree()
757 clks[MPC512x_CLK_SDHC_x4] = mpc512x_clk_factor("sdhc-x4", "csb", 2, 1); in mpc512x_clk_setup_clock_tree()
758 clks[MPC512x_CLK_SDHC_UG] = mpc512x_clk_divider("sdhc-ug", "sdhc-x4", 0, in mpc512x_clk_setup_clock_tree()
762 clks[MPC512x_CLK_SDHC2_UG] = mpc512x_clk_divider( in mpc512x_clk_setup_clock_tree()
767 clks[MPC512x_CLK_DIU_x4] = mpc512x_clk_factor("diu-x4", "csb", 4, 1); in mpc512x_clk_setup_clock_tree()
768 clks[MPC512x_CLK_DIU_UG] = mpc512x_clk_divider("diu-ug", "diu-x4", 0, in mpc512x_clk_setup_clock_tree()
781 clks[MPC512x_CLK_E300] = mpc512x_clk_factor("e300", "csb", mul, div); in mpc512x_clk_setup_clock_tree()
784 clks[MPC512x_CLK_MBX_BUS_UG] = mpc512x_clk_factor( in mpc512x_clk_setup_clock_tree()
786 clks[MPC512x_CLK_MBX_UG] = mpc512x_clk_divtable( in mpc512x_clk_setup_clock_tree()
789 clks[MPC512x_CLK_MBX_3D_UG] = mpc512x_clk_factor( in mpc512x_clk_setup_clock_tree()
793 clks[MPC512x_CLK_PCI_UG] = mpc512x_clk_divtable( in mpc512x_clk_setup_clock_tree()
803 clks[MPC512x_CLK_NFC_UG] = ERR_PTR(-ENOTSUPP); in mpc512x_clk_setup_clock_tree()
805 clks[MPC512x_CLK_NFC_UG] = mpc512x_clk_divtable( in mpc512x_clk_setup_clock_tree()
809 clks[MPC512x_CLK_LPC_UG] = mpc512x_clk_divtable("lpc-ug", "ips", in mpc512x_clk_setup_clock_tree()
813 clks[MPC512x_CLK_LPC] = mpc512x_clk_gated("lpc", "lpc-ug", in mpc512x_clk_setup_clock_tree()
815 clks[MPC512x_CLK_NFC] = mpc512x_clk_gated("nfc", "nfc-ug", in mpc512x_clk_setup_clock_tree()
818 clks[MPC512x_CLK_PATA] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
825 clks[MPC512x_CLK_PSC0 + mclk_idx] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
829 clks[MPC512x_CLK_PSC_FIFO] = mpc512x_clk_gated("psc-fifo", "ips", in mpc512x_clk_setup_clock_tree()
832 clks[MPC512x_CLK_SATA] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
835 clks[MPC512x_CLK_FEC] = mpc512x_clk_gated("fec", "ips", in mpc512x_clk_setup_clock_tree()
838 clks[MPC512x_CLK_PCI] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
841 clks[MPC512x_CLK_DDR] = mpc512x_clk_gated("ddr", "ddr-ug", in mpc512x_clk_setup_clock_tree()
844 clks[MPC512x_CLK_FEC2] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
848 clks[MPC512x_CLK_DIU] = mpc512x_clk_gated("diu", "diu-ug", in mpc512x_clk_setup_clock_tree()
851 clks[MPC512x_CLK_AXE] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
854 clks[MPC512x_CLK_MEM] = mpc512x_clk_gated("mem", "ips", in mpc512x_clk_setup_clock_tree()
856 clks[MPC512x_CLK_USB1] = mpc512x_clk_gated("usb1", "csb", in mpc512x_clk_setup_clock_tree()
858 clks[MPC512x_CLK_USB2] = mpc512x_clk_gated("usb2", "csb", in mpc512x_clk_setup_clock_tree()
860 clks[MPC512x_CLK_I2C] = mpc512x_clk_gated("i2c", "ips", in mpc512x_clk_setup_clock_tree()
863 clks[MPC512x_CLK_BDLC] = mpc512x_clk_gated("bdlc", "ips", in mpc512x_clk_setup_clock_tree()
867 clks[MPC512x_CLK_SDHC] = mpc512x_clk_gated("sdhc", "sdhc-ug", in mpc512x_clk_setup_clock_tree()
871 clks[MPC512x_CLK_SPDIF] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
876 clks[MPC512x_CLK_MBX_BUS] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
878 clks[MPC512x_CLK_MBX] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
880 clks[MPC512x_CLK_MBX_3D] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
883 clks[MPC512x_CLK_IIM] = mpc512x_clk_gated("iim", "csb", in mpc512x_clk_setup_clock_tree()
886 clks[MPC512x_CLK_VIU] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
890 clks[MPC512x_CLK_SDHC2] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
907 clks[MPC512x_CLK_PSC_MCLK_IN] = mpc512x_clk_fixed("psc_mclk_in", freq); in mpc512x_clk_setup_clock_tree()
910 clks[MPC512x_CLK_CAN_CLK_IN] = mpc512x_clk_fixed( in mpc512x_clk_setup_clock_tree()
914 clks[MPC512x_CLK_SPDIF_TX_IN] = mpc512x_clk_fixed( in mpc512x_clk_setup_clock_tree()
917 clks[MPC512x_CLK_SPDIF_TX_IN] = mpc512x_clk_fixed( in mpc512x_clk_setup_clock_tree()
922 clks[MPC512x_CLK_AC97] = mpc512x_clk_fixed("ac97", 24567000); in mpc512x_clk_setup_clock_tree()
929 clk_prepare_enable(clks[MPC512x_CLK_DUMMY]); in mpc512x_clk_setup_clock_tree()
930 clk_prepare_enable(clks[MPC512x_CLK_E300]); /* PowerPC CPU */ in mpc512x_clk_setup_clock_tree()
931 clk_prepare_enable(clks[MPC512x_CLK_DDR]); /* DRAM */ in mpc512x_clk_setup_clock_tree()
932 clk_prepare_enable(clks[MPC512x_CLK_MEM]); /* SRAM */ in mpc512x_clk_setup_clock_tree()
933 clk_prepare_enable(clks[MPC512x_CLK_IPS]); /* SoC periph */ in mpc512x_clk_setup_clock_tree()
934 clk_prepare_enable(clks[MPC512x_CLK_LPC]); /* boot media */ in mpc512x_clk_setup_clock_tree()
943 clk_data.clks = clks; in mpc5121_clk_register_of_provider()
973 clk_prepare_enable(clks[MPC512x_CLK_PSC3_MCLK]);/* serial console */ in mpc5121_clk_provide_migration_support()
975 clk_prepare_enable(clks[MPC512x_CLK_PCI]); in mpc5121_clk_provide_migration_support()
1039 NODE_CHK("ipg", clks[MPC512x_CLK_PSC0 + idx], 0, PSC); in mpc5121_clk_provide_backwards_compat()
1040 NODE_CHK("mclk", clks[MPC512x_CLK_PSC0_MCLK + idx], 0, PSC); in mpc5121_clk_provide_backwards_compat()
1045 NODE_CHK("ipg", clks[MPC512x_CLK_PSC_FIFO], 1, PSCFIFO); in mpc5121_clk_provide_backwards_compat()
1050 NODE_CHK("ipg", clks[MPC512x_CLK_NFC], 0, NFC); in mpc5121_clk_provide_backwards_compat()
1058 NODE_CHK("ipg", clks[MPC512x_CLK_BDLC], 0, CAN); in mpc5121_clk_provide_backwards_compat()
1059 NODE_CHK("mclk", clks[MPC512x_CLK_MSCAN0_MCLK + idx], 0, CAN); in mpc5121_clk_provide_backwards_compat()
1068 clk_register_clkdev(clks[MPC512x_CLK_IPS], "ips", NULL); in mpc5121_clk_provide_backwards_compat()
1069 clk_register_clkdev(clks[MPC512x_CLK_SYS], "sys", NULL); in mpc5121_clk_provide_backwards_compat()
1070 clk_register_clkdev(clks[MPC512x_CLK_REF], "ref", NULL); in mpc5121_clk_provide_backwards_compat()
1075 NODE_CHK("ipg", clks[MPC512x_CLK_I2C], 0, I2C); in mpc5121_clk_provide_backwards_compat()
1094 clk_prepare_enable(clks[MPC512x_CLK_I2C]); in mpc5121_clk_provide_backwards_compat()
1098 NODE_CHK("ipg", clks[MPC512x_CLK_DIU], 1, DIU); in mpc5121_clk_provide_backwards_compat()
1103 NODE_CHK("ipg", clks[MPC512x_CLK_VIU], 0, VIU); in mpc5121_clk_provide_backwards_compat()
1115 NODE_CHK("per", clks[MPC512x_CLK_FEC], 0, FEC); in mpc5121_clk_provide_backwards_compat()
1119 NODE_CHK("per", clks[MPC512x_CLK_FEC], 0, FEC); in mpc5121_clk_provide_backwards_compat()
1133 NODE_CHK("per", clks[idx], 0, FEC); in mpc5121_clk_provide_backwards_compat()
1139 NODE_CHK("ipg", clks[MPC512x_CLK_USB1 + idx], 0, USB); in mpc5121_clk_provide_backwards_compat()
1144 NODE_CHK("ipg", clks[MPC512x_CLK_PATA], 0, PATA); in mpc5121_clk_provide_backwards_compat()
1199 clks[MPC512x_CLK_DUMMY] = mpc512x_clk_fixed("dummy", 0); in mpc5121_clk_init()