• Home
  • Raw
  • Download

Lines Matching refs:clks

70 static struct clk *clks[MPC512x_CLK_LAST_PRIVATE];  variable
403 for (i = 0; i < ARRAY_SIZE(clks); i++) in mpc512x_clk_preset_data()
404 clks[i] = ERR_PTR(-ENODEV); in mpc512x_clk_preset_data()
446 clks[MPC512x_CLK_REF] = mpc512x_clk_factor("ref", "osc", 1, 1); in mpc512x_clk_setup_ref_clock()
447 calc_freq = clk_get_rate(clks[MPC512x_CLK_REF]); in mpc512x_clk_setup_ref_clock()
461 clks[MPC512x_CLK_REF] = mpc512x_clk_fixed("ref", calc_freq); in mpc512x_clk_setup_ref_clock()
650 div = clk_get_rate(clks[MPC512x_CLK_SYS]); in mpc512x_clk_setup_mclk()
651 div /= clk_get_rate(clks[MPC512x_CLK_IPS]); in mpc512x_clk_setup_mclk()
674 clks[clks_idx_int + MCLK_IDX_MUX0] = mpc512x_clk_muxed( in mpc512x_clk_setup_mclk()
681 clks[clks_idx_int + MCLK_IDX_EN0] = mpc512x_clk_gated( in mpc512x_clk_setup_mclk()
684 clks[clks_idx_int + MCLK_IDX_DIV0] = mpc512x_clk_divider( in mpc512x_clk_setup_mclk()
689 clks[clks_idx_pub] = mpc512x_clk_muxed( in mpc512x_clk_setup_mclk()
695 clks[clks_idx_pub] = mpc512x_clk_factor( in mpc512x_clk_setup_mclk()
735 clks[MPC512x_CLK_SYS] = mpc512x_clk_factor("sys", "ref", in mpc512x_clk_setup_clock_tree()
737 clks[MPC512x_CLK_CSB] = mpc512x_clk_factor("csb", "sys", 1, 2); in mpc512x_clk_setup_clock_tree()
738 clks[MPC512x_CLK_IPS] = mpc512x_clk_divtable("ips", "csb", in mpc512x_clk_setup_clock_tree()
743 clks[MPC512x_CLK_DDR_UG] = mpc512x_clk_factor("ddr-ug", "sys", 1, 2); in mpc512x_clk_setup_clock_tree()
756 clks[MPC512x_CLK_SDHC_x4] = mpc512x_clk_factor("sdhc-x4", "csb", 2, 1); in mpc512x_clk_setup_clock_tree()
757 clks[MPC512x_CLK_SDHC_UG] = mpc512x_clk_divider("sdhc-ug", "sdhc-x4", 0, in mpc512x_clk_setup_clock_tree()
761 clks[MPC512x_CLK_SDHC2_UG] = mpc512x_clk_divider( in mpc512x_clk_setup_clock_tree()
766 clks[MPC512x_CLK_DIU_x4] = mpc512x_clk_factor("diu-x4", "csb", 4, 1); in mpc512x_clk_setup_clock_tree()
767 clks[MPC512x_CLK_DIU_UG] = mpc512x_clk_divider("diu-ug", "diu-x4", 0, in mpc512x_clk_setup_clock_tree()
780 clks[MPC512x_CLK_E300] = mpc512x_clk_factor("e300", "csb", mul, div); in mpc512x_clk_setup_clock_tree()
783 clks[MPC512x_CLK_MBX_BUS_UG] = mpc512x_clk_factor( in mpc512x_clk_setup_clock_tree()
785 clks[MPC512x_CLK_MBX_UG] = mpc512x_clk_divtable( in mpc512x_clk_setup_clock_tree()
788 clks[MPC512x_CLK_MBX_3D_UG] = mpc512x_clk_factor( in mpc512x_clk_setup_clock_tree()
792 clks[MPC512x_CLK_PCI_UG] = mpc512x_clk_divtable( in mpc512x_clk_setup_clock_tree()
802 clks[MPC512x_CLK_NFC_UG] = ERR_PTR(-ENOTSUPP); in mpc512x_clk_setup_clock_tree()
804 clks[MPC512x_CLK_NFC_UG] = mpc512x_clk_divtable( in mpc512x_clk_setup_clock_tree()
808 clks[MPC512x_CLK_LPC_UG] = mpc512x_clk_divtable("lpc-ug", "ips", in mpc512x_clk_setup_clock_tree()
812 clks[MPC512x_CLK_LPC] = mpc512x_clk_gated("lpc", "lpc-ug", in mpc512x_clk_setup_clock_tree()
814 clks[MPC512x_CLK_NFC] = mpc512x_clk_gated("nfc", "nfc-ug", in mpc512x_clk_setup_clock_tree()
817 clks[MPC512x_CLK_PATA] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
824 clks[MPC512x_CLK_PSC0 + mclk_idx] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
828 clks[MPC512x_CLK_PSC_FIFO] = mpc512x_clk_gated("psc-fifo", "ips", in mpc512x_clk_setup_clock_tree()
831 clks[MPC512x_CLK_SATA] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
834 clks[MPC512x_CLK_FEC] = mpc512x_clk_gated("fec", "ips", in mpc512x_clk_setup_clock_tree()
837 clks[MPC512x_CLK_PCI] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
840 clks[MPC512x_CLK_DDR] = mpc512x_clk_gated("ddr", "ddr-ug", in mpc512x_clk_setup_clock_tree()
843 clks[MPC512x_CLK_FEC2] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
847 clks[MPC512x_CLK_DIU] = mpc512x_clk_gated("diu", "diu-ug", in mpc512x_clk_setup_clock_tree()
850 clks[MPC512x_CLK_AXE] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
853 clks[MPC512x_CLK_MEM] = mpc512x_clk_gated("mem", "ips", in mpc512x_clk_setup_clock_tree()
855 clks[MPC512x_CLK_USB1] = mpc512x_clk_gated("usb1", "csb", in mpc512x_clk_setup_clock_tree()
857 clks[MPC512x_CLK_USB2] = mpc512x_clk_gated("usb2", "csb", in mpc512x_clk_setup_clock_tree()
859 clks[MPC512x_CLK_I2C] = mpc512x_clk_gated("i2c", "ips", in mpc512x_clk_setup_clock_tree()
862 clks[MPC512x_CLK_BDLC] = mpc512x_clk_gated("bdlc", "ips", in mpc512x_clk_setup_clock_tree()
866 clks[MPC512x_CLK_SDHC] = mpc512x_clk_gated("sdhc", "sdhc-ug", in mpc512x_clk_setup_clock_tree()
870 clks[MPC512x_CLK_SPDIF] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
875 clks[MPC512x_CLK_MBX_BUS] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
877 clks[MPC512x_CLK_MBX] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
879 clks[MPC512x_CLK_MBX_3D] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
882 clks[MPC512x_CLK_IIM] = mpc512x_clk_gated("iim", "csb", in mpc512x_clk_setup_clock_tree()
885 clks[MPC512x_CLK_VIU] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
889 clks[MPC512x_CLK_SDHC2] = mpc512x_clk_gated( in mpc512x_clk_setup_clock_tree()
906 clks[MPC512x_CLK_PSC_MCLK_IN] = mpc512x_clk_fixed("psc_mclk_in", freq); in mpc512x_clk_setup_clock_tree()
909 clks[MPC512x_CLK_CAN_CLK_IN] = mpc512x_clk_fixed( in mpc512x_clk_setup_clock_tree()
913 clks[MPC512x_CLK_SPDIF_TX_IN] = mpc512x_clk_fixed( in mpc512x_clk_setup_clock_tree()
916 clks[MPC512x_CLK_SPDIF_TX_IN] = mpc512x_clk_fixed( in mpc512x_clk_setup_clock_tree()
921 clks[MPC512x_CLK_AC97] = mpc512x_clk_fixed("ac97", 24567000); in mpc512x_clk_setup_clock_tree()
928 clk_prepare_enable(clks[MPC512x_CLK_DUMMY]); in mpc512x_clk_setup_clock_tree()
929 clk_prepare_enable(clks[MPC512x_CLK_E300]); /* PowerPC CPU */ in mpc512x_clk_setup_clock_tree()
930 clk_prepare_enable(clks[MPC512x_CLK_DDR]); /* DRAM */ in mpc512x_clk_setup_clock_tree()
931 clk_prepare_enable(clks[MPC512x_CLK_MEM]); /* SRAM */ in mpc512x_clk_setup_clock_tree()
932 clk_prepare_enable(clks[MPC512x_CLK_IPS]); /* SoC periph */ in mpc512x_clk_setup_clock_tree()
933 clk_prepare_enable(clks[MPC512x_CLK_LPC]); /* boot media */ in mpc512x_clk_setup_clock_tree()
942 clk_data.clks = clks; in mpc5121_clk_register_of_provider()
972 clk_prepare_enable(clks[MPC512x_CLK_PSC3_MCLK]);/* serial console */ in mpc5121_clk_provide_migration_support()
974 clk_prepare_enable(clks[MPC512x_CLK_PCI]); in mpc5121_clk_provide_migration_support()
1038 NODE_CHK("ipg", clks[MPC512x_CLK_PSC0 + idx], 0, PSC); in mpc5121_clk_provide_backwards_compat()
1039 NODE_CHK("mclk", clks[MPC512x_CLK_PSC0_MCLK + idx], 0, PSC); in mpc5121_clk_provide_backwards_compat()
1044 NODE_CHK("ipg", clks[MPC512x_CLK_PSC_FIFO], 1, PSCFIFO); in mpc5121_clk_provide_backwards_compat()
1049 NODE_CHK("ipg", clks[MPC512x_CLK_NFC], 0, NFC); in mpc5121_clk_provide_backwards_compat()
1057 NODE_CHK("ipg", clks[MPC512x_CLK_BDLC], 0, CAN); in mpc5121_clk_provide_backwards_compat()
1058 NODE_CHK("mclk", clks[MPC512x_CLK_MSCAN0_MCLK + idx], 0, CAN); in mpc5121_clk_provide_backwards_compat()
1067 clk_register_clkdev(clks[MPC512x_CLK_IPS], "ips", NULL); in mpc5121_clk_provide_backwards_compat()
1068 clk_register_clkdev(clks[MPC512x_CLK_SYS], "sys", NULL); in mpc5121_clk_provide_backwards_compat()
1069 clk_register_clkdev(clks[MPC512x_CLK_REF], "ref", NULL); in mpc5121_clk_provide_backwards_compat()
1074 NODE_CHK("ipg", clks[MPC512x_CLK_I2C], 0, I2C); in mpc5121_clk_provide_backwards_compat()
1093 clk_prepare_enable(clks[MPC512x_CLK_I2C]); in mpc5121_clk_provide_backwards_compat()
1097 NODE_CHK("ipg", clks[MPC512x_CLK_DIU], 1, DIU); in mpc5121_clk_provide_backwards_compat()
1102 NODE_CHK("ipg", clks[MPC512x_CLK_VIU], 0, VIU); in mpc5121_clk_provide_backwards_compat()
1114 NODE_CHK("per", clks[MPC512x_CLK_FEC], 0, FEC); in mpc5121_clk_provide_backwards_compat()
1118 NODE_CHK("per", clks[MPC512x_CLK_FEC], 0, FEC); in mpc5121_clk_provide_backwards_compat()
1132 NODE_CHK("per", clks[idx], 0, FEC); in mpc5121_clk_provide_backwards_compat()
1138 NODE_CHK("ipg", clks[MPC512x_CLK_USB1 + idx], 0, USB); in mpc5121_clk_provide_backwards_compat()
1143 NODE_CHK("ipg", clks[MPC512x_CLK_PATA], 0, PATA); in mpc5121_clk_provide_backwards_compat()
1198 clks[MPC512x_CLK_DUMMY] = mpc512x_clk_fixed("dummy", 0); in mpc5121_clk_init()