Home
last modified time | relevance | path

Searched refs:pcap_rate (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/iio/adc/
Dxilinx-xadc-core.c331 unsigned long pcap_rate; in xadc_zynq_setup() local
344 pcap_rate = clk_get_rate(xadc->clk); in xadc_zynq_setup()
345 if (!pcap_rate) in xadc_zynq_setup()
348 if (pcap_rate > XADC_ZYNQ_PCAP_RATE_MAX) { in xadc_zynq_setup()
355 if (tck_rate > pcap_rate / 2) { in xadc_zynq_setup()
358 div = pcap_rate / tck_rate; in xadc_zynq_setup()
359 if (pcap_rate / div > XADC_ZYNQ_TCK_RATE_MAX) in xadc_zynq_setup()
380 if (pcap_rate > XADC_ZYNQ_PCAP_RATE_MAX) { in xadc_zynq_setup()
381 ret = clk_set_rate(xadc->clk, pcap_rate); in xadc_zynq_setup()