Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/mmc/host/
Dmtk-sd.c457 u32 src_clk_freq; /* source clock frequency */ member
887 if (hz >= (host->src_clk_freq >> 2)) { in msdc_set_mclk()
889 sclk = host->src_clk_freq >> 2; /* sclk = clk / 4 */ in msdc_set_mclk()
891 div = (host->src_clk_freq + ((hz << 2) - 1)) / (hz << 2); in msdc_set_mclk()
892 sclk = (host->src_clk_freq >> 2) / div; in msdc_set_mclk()
897 hz >= (host->src_clk_freq >> 1)) { in msdc_set_mclk()
904 sclk = host->src_clk_freq >> 1; in msdc_set_mclk()
907 } else if (hz >= host->src_clk_freq) { in msdc_set_mclk()
910 sclk = host->src_clk_freq; in msdc_set_mclk()
913 if (hz >= (host->src_clk_freq >> 1)) { in msdc_set_mclk()
[all …]
/Linux-v6.1/drivers/i2c/busses/
Di2c-qup.c1664 u32 src_clk_freq = DEFAULT_SRC_CLK; in qup_i2c_probe() local
1768 "src-clock-hz", &src_clk_freq); in qup_i2c_probe()
1787 src_clk_freq = clk_get_rate(qup->clk); in qup_i2c_probe()
1855 fs_div = ((src_clk_freq / clk_freq) / 2) - 3; in qup_i2c_probe()
1859 fs_div = ((src_clk_freq / clk_freq) - 6) * 2 / 3; in qup_i2c_probe()