Home
last modified time | relevance | path

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

/linux/drivers/i2c/busses/
H A Di2c-npcm7xx.c1813 u32 src_clk_khz; in npcm_i2c_init_clk() local
1816 src_clk_khz = bus->apb_clk / 1000; in npcm_i2c_init_clk()
1822 sclfrq = src_clk_khz / (bus_freq_khz * 4); in npcm_i2c_init_clk()
1827 if (src_clk_khz >= 40000) in npcm_i2c_init_clk()
1829 else if (src_clk_khz >= 12500) in npcm_i2c_init_clk()
1840 if (src_clk_khz < 7500) in npcm_i2c_init_clk()
1844 else if (src_clk_khz >= 50000) { in npcm_i2c_init_clk()
1852 else if (src_clk_khz > 25000) { in npcm_i2c_init_clk()
1853 hldt = clk_coef(src_clk_khz, 300) + 7; in npcm_i2c_init_clk()
1854 k1 = clk_coef(src_clk_khz, 1600); in npcm_i2c_init_clk()
[all …]