Searched refs:spi_freq (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.1/drivers/iio/adc/ |
D | stm32-dfsdm-adc.c | 84 unsigned int spi_freq; /* SPI bus clock frequency */ member 675 return snprintf(buf, PAGE_SIZE, "%d\n", adc->spi_freq); in dfsdm_adc_audio_get_spiclk() 680 unsigned int spi_freq) in dfsdm_adc_set_samp_freq() argument 686 oversamp = DIV_ROUND_CLOSEST(spi_freq, sample_freq); in dfsdm_adc_set_samp_freq() 687 if (spi_freq % sample_freq) in dfsdm_adc_set_samp_freq() 690 sample_freq, spi_freq / oversamp); in dfsdm_adc_set_samp_freq() 696 adc->sample_freq = spi_freq / oversamp; in dfsdm_adc_set_samp_freq() 710 unsigned int spi_freq; in dfsdm_adc_audio_set_spiclk() local 718 ret = kstrtoint(buf, 0, &spi_freq); in dfsdm_adc_audio_set_spiclk() 722 if (!spi_freq) in dfsdm_adc_audio_set_spiclk() [all …]
|
D | stm32-dfsdm-core.c | 220 unsigned int spi_freq, rem; in stm32_dfsdm_parse_of() local 255 &spi_freq); in stm32_dfsdm_parse_of() 261 divider = div_u64_rem(clk_freq, spi_freq, &rem); in stm32_dfsdm_parse_of() 279 clk_freq, spi_freq, priv->spi_clk_out_div + 1, rem); in stm32_dfsdm_parse_of()
|
/Linux-v6.1/drivers/spi/ |
D | spi-mtk-nor.c | 96 #define CLK_TO_US(sp, clkcnt) DIV_ROUND_UP(clkcnt, sp->spi_freq / 1000000) 119 unsigned int spi_freq; member 630 if (spi->max_speed_hz && (spi->max_speed_hz < sp->spi_freq)) { in mtk_nor_setup() 632 sp->spi_freq); in mtk_nor_setup() 635 spi->max_speed_hz = sp->spi_freq; in mtk_nor_setup() 878 sp->spi_freq = clk_get_rate(sp->spi_clk); in mtk_nor_probe() 910 dev_info(&pdev->dev, "spi frequency: %d Hz\n", sp->spi_freq); in mtk_nor_probe()
|
/Linux-v6.1/drivers/mtd/devices/ |
D | st_spi_fsm.c | 1896 static void stfsm_set_freq(struct stfsm *fsm, uint32_t spi_freq) in stfsm_set_freq() argument 1907 clk_div = 2 * DIV_ROUND_UP(emi_freq, 2 * spi_freq); in stfsm_set_freq() 1927 emi_freq, spi_freq, clk_div); in stfsm_set_freq()
|