Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-npcm7xx.c1797 u32 src_clk_khz; in npcm_i2c_init_clk() local
1800 src_clk_khz = bus->apb_clk / 1000; in npcm_i2c_init_clk()
1806 sclfrq = src_clk_khz / (bus_freq_khz * 4); in npcm_i2c_init_clk()
1811 if (src_clk_khz >= 40000) in npcm_i2c_init_clk()
1813 else if (src_clk_khz >= 12500) in npcm_i2c_init_clk()
1824 if (src_clk_khz < 7500) in npcm_i2c_init_clk()
1828 else if (src_clk_khz >= 50000) { in npcm_i2c_init_clk()
1836 else if (src_clk_khz > 25000) { in npcm_i2c_init_clk()
1837 hldt = clk_coef(src_clk_khz, 300) + 7; in npcm_i2c_init_clk()
1838 k1 = clk_coef(src_clk_khz, 1600); in npcm_i2c_init_clk()
[all …]