Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/spi/
Dspi-hisi-kunpeng.c121 u8 div_pre; /* value from 2 to 254 (even only!) */ member
278 chip->div_pre = DIV_PRE_MAX; in __hisi_calc_div_reg()
279 while (chip->div_pre >= DIV_PRE_MIN) { in __hisi_calc_div_reg()
280 if (chip->clk_div % chip->div_pre == 0) in __hisi_calc_div_reg()
283 chip->div_pre -= 2; in __hisi_calc_div_reg()
286 if (chip->div_pre > chip->clk_div) in __hisi_calc_div_reg()
287 chip->div_pre = chip->clk_div; in __hisi_calc_div_reg()
289 chip->div_post = (chip->clk_div / chip->div_pre) - 1; in __hisi_calc_div_reg()
384 cr |= FIELD_PREP(CR_DIV_PRE_MASK, chip->div_pre); in hisi_spi_transfer_one()