Home
last modified time | relevance | path

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

/openbmc/linux/drivers/mmc/host/
H A Drenesas_sdhi_core.c130 unsigned int new_clock, clkh_shift = 0; in renesas_sdhi_clk_update() local
150 new_clock = wanted_clock << clkh_shift; in renesas_sdhi_clk_update()
164 for (i = min(9, ilog2(UINT_MAX / new_clock)); i >= 0; i--) { in renesas_sdhi_clk_update()
165 freq = clk_round_rate(ref_clk, new_clock << i); in renesas_sdhi_clk_update()
166 new_upper_limit = (new_clock << i) + ((new_clock << i) >> 10); in renesas_sdhi_clk_update()
169 freq = clk_round_rate(ref_clk, (new_clock << i) / 4 * 3); in renesas_sdhi_clk_update()
174 diff = new_clock - (freq >> i); in renesas_sdhi_clk_update()
190 unsigned int new_clock) in renesas_sdhi_set_clock() argument
198 if (new_clock == 0) { in renesas_sdhi_set_clock()
203 host->mmc->actual_clock = renesas_sdhi_clk_update(host, new_clock); in renesas_sdhi_set_clock()
[all …]