Searched refs:src_clk_khz (Results 1 – 1 of 1) sorted by relevance
1815 u32 src_clk_khz; in npcm_i2c_init_clk() local1818 src_clk_khz = bus->apb_clk / 1000; in npcm_i2c_init_clk()1824 sclfrq = src_clk_khz / (bus_freq_khz * 4); in npcm_i2c_init_clk()1829 if (src_clk_khz >= 40000) in npcm_i2c_init_clk()1831 else if (src_clk_khz >= 12500) in npcm_i2c_init_clk()1842 if (src_clk_khz < 7500) in npcm_i2c_init_clk()1846 else if (src_clk_khz >= 50000) { in npcm_i2c_init_clk()1854 else if (src_clk_khz > 25000) { in npcm_i2c_init_clk()1855 hldt = clk_coef(src_clk_khz, 300) + 7; in npcm_i2c_init_clk()1856 k1 = clk_coef(src_clk_khz, 1600); in npcm_i2c_init_clk()[all …]