Lines Matching refs:clk_data
151 struct sdhci_arasan_clk_data clk_data; member
265 struct sdhci_arasan_clk_data *clk_data = &sdhci_arasan->clk_data; in sdhci_arasan_set_clock() local
323 if (clk_data->set_clk_delays) in sdhci_arasan_set_clock()
324 clk_data->set_clk_delays(host); in sdhci_arasan_set_clock()
589 struct sdhci_arasan_clk_data *clk_data = in sdhci_arasan_sdcardclk_recalc_rate() local
592 container_of(clk_data, struct sdhci_arasan_data, clk_data); in sdhci_arasan_sdcardclk_recalc_rate()
616 struct sdhci_arasan_clk_data *clk_data = in sdhci_arasan_sampleclk_recalc_rate() local
619 container_of(clk_data, struct sdhci_arasan_data, clk_data); in sdhci_arasan_sampleclk_recalc_rate()
641 struct sdhci_arasan_clk_data *clk_data = in sdhci_zynqmp_sdcardclk_set_phase() local
644 container_of(clk_data, struct sdhci_arasan_data, clk_data); in sdhci_zynqmp_sdcardclk_set_phase()
707 struct sdhci_arasan_clk_data *clk_data = in sdhci_zynqmp_sampleclk_set_phase() local
710 container_of(clk_data, struct sdhci_arasan_data, clk_data); in sdhci_zynqmp_sampleclk_set_phase()
773 struct sdhci_arasan_clk_data *clk_data = in sdhci_versal_sdcardclk_set_phase() local
776 container_of(clk_data, struct sdhci_arasan_data, clk_data); in sdhci_versal_sdcardclk_set_phase()
840 struct sdhci_arasan_clk_data *clk_data = in sdhci_versal_sampleclk_set_phase() local
843 container_of(clk_data, struct sdhci_arasan_data, clk_data); in sdhci_versal_sampleclk_set_phase()
920 struct clk_hw *hw = &sdhci_arasan->clk_data.sdcardclk_hw; in arasan_zynqmp_execute_tuning()
1024 struct sdhci_arasan_clk_data *clk_data = &sdhci_arasan->clk_data; in sdhci_arasan_set_clk_delays() local
1026 clk_set_phase(clk_data->sampleclk, in sdhci_arasan_set_clk_delays()
1027 clk_data->clk_phase_in[host->timing]); in sdhci_arasan_set_clk_delays()
1028 clk_set_phase(clk_data->sdcardclk, in sdhci_arasan_set_clk_delays()
1029 clk_data->clk_phase_out[host->timing]); in sdhci_arasan_set_clk_delays()
1033 struct sdhci_arasan_clk_data *clk_data, in arasan_dt_read_clk_phase() argument
1049 prop, clk_data->clk_phase_in[timing], in arasan_dt_read_clk_phase()
1050 clk_data->clk_phase_out[timing]); in arasan_dt_read_clk_phase()
1055 clk_data->clk_phase_in[timing] = clk_phase[0]; in arasan_dt_read_clk_phase()
1056 clk_data->clk_phase_out[timing] = clk_phase[1]; in arasan_dt_read_clk_phase()
1068 struct sdhci_arasan_clk_data *clk_data) in arasan_dt_parse_clk_phases() argument
1078 clk_data->set_clk_delays = sdhci_arasan_set_clk_delays; in arasan_dt_parse_clk_phases()
1093 clk_data->clk_phase_in[i] = zynqmp_iclk_phase[i]; in arasan_dt_parse_clk_phases()
1094 clk_data->clk_phase_out[i] = zynqmp_oclk_phase[i]; in arasan_dt_parse_clk_phases()
1105 clk_data->clk_phase_in[i] = versal_iclk_phase[i]; in arasan_dt_parse_clk_phases()
1106 clk_data->clk_phase_out[i] = versal_oclk_phase[i]; in arasan_dt_parse_clk_phases()
1110 arasan_dt_read_clk_phase(dev, clk_data, MMC_TIMING_LEGACY, in arasan_dt_parse_clk_phases()
1112 arasan_dt_read_clk_phase(dev, clk_data, MMC_TIMING_MMC_HS, in arasan_dt_parse_clk_phases()
1114 arasan_dt_read_clk_phase(dev, clk_data, MMC_TIMING_SD_HS, in arasan_dt_parse_clk_phases()
1116 arasan_dt_read_clk_phase(dev, clk_data, MMC_TIMING_UHS_SDR12, in arasan_dt_parse_clk_phases()
1118 arasan_dt_read_clk_phase(dev, clk_data, MMC_TIMING_UHS_SDR25, in arasan_dt_parse_clk_phases()
1120 arasan_dt_read_clk_phase(dev, clk_data, MMC_TIMING_UHS_SDR50, in arasan_dt_parse_clk_phases()
1122 arasan_dt_read_clk_phase(dev, clk_data, MMC_TIMING_UHS_SDR104, in arasan_dt_parse_clk_phases()
1124 arasan_dt_read_clk_phase(dev, clk_data, MMC_TIMING_UHS_DDR50, in arasan_dt_parse_clk_phases()
1126 arasan_dt_read_clk_phase(dev, clk_data, MMC_TIMING_MMC_DDR52, in arasan_dt_parse_clk_phases()
1128 arasan_dt_read_clk_phase(dev, clk_data, MMC_TIMING_MMC_HS200, in arasan_dt_parse_clk_phases()
1130 arasan_dt_read_clk_phase(dev, clk_data, MMC_TIMING_MMC_HS400, in arasan_dt_parse_clk_phases()
1338 struct sdhci_arasan_clk_data *clk_data = &sdhci_arasan->clk_data; in sdhci_arasan_register_sdcardclk() local
1357 clk_data->sdcardclk_hw.init = &sdcardclk_init; in sdhci_arasan_register_sdcardclk()
1358 clk_data->sdcardclk = in sdhci_arasan_register_sdcardclk()
1359 devm_clk_register(dev, &clk_data->sdcardclk_hw); in sdhci_arasan_register_sdcardclk()
1360 if (IS_ERR(clk_data->sdcardclk)) in sdhci_arasan_register_sdcardclk()
1361 return PTR_ERR(clk_data->sdcardclk); in sdhci_arasan_register_sdcardclk()
1362 clk_data->sdcardclk_hw.init = NULL; in sdhci_arasan_register_sdcardclk()
1365 clk_data->sdcardclk); in sdhci_arasan_register_sdcardclk()
1390 struct sdhci_arasan_clk_data *clk_data = &sdhci_arasan->clk_data; in sdhci_arasan_register_sampleclk() local
1409 clk_data->sampleclk_hw.init = &sampleclk_init; in sdhci_arasan_register_sampleclk()
1410 clk_data->sampleclk = in sdhci_arasan_register_sampleclk()
1411 devm_clk_register(dev, &clk_data->sampleclk_hw); in sdhci_arasan_register_sampleclk()
1412 if (IS_ERR(clk_data->sampleclk)) in sdhci_arasan_register_sampleclk()
1413 return PTR_ERR(clk_data->sampleclk); in sdhci_arasan_register_sampleclk()
1414 clk_data->sampleclk_hw.init = NULL; in sdhci_arasan_register_sampleclk()
1417 clk_data->sampleclk); in sdhci_arasan_register_sampleclk()
1681 arasan_dt_parse_clk_phases(dev, &sdhci_arasan->clk_data); in sdhci_arasan_probe()