Searched refs:div_main (Results 1 – 1 of 1) sorted by relevance
/linux-6.1.9/drivers/iio/adc/ |
D | ingenic-adc.c | 318 unsigned int div_main, div_10us; in jz4725b_adc_init_clk_div() local 332 div_main = DIV_ROUND_UP(parent_rate, 8000000); in jz4725b_adc_init_clk_div() 333 div_main = clamp(div_main, 1u, 64u); in jz4725b_adc_init_clk_div() 334 rate = parent_rate / div_main; in jz4725b_adc_init_clk_div() 344 (div_main - 1) << JZ_ADC_REG_ADCLK_CLKDIV_LSB, in jz4725b_adc_init_clk_div() 354 unsigned int div_main, div_ms, div_10us; in jz4770_adc_init_clk_div() local 367 div_main = DIV_ROUND_UP(parent_rate, 200000); in jz4770_adc_init_clk_div() 368 div_main = clamp(div_main, 1u, 256u); in jz4770_adc_init_clk_div() 369 rate = parent_rate / div_main; in jz4770_adc_init_clk_div() 382 (div_main - 1) << JZ_ADC_REG_ADCLK_CLKDIV_LSB, in jz4770_adc_init_clk_div()
|