Searched refs:sclfrq (Results 1 – 1 of 1) sorted by relevance
1812 u32 sclfrq = 0; in npcm_i2c_init_clk() local1824 sclfrq = src_clk_khz / (bus_freq_khz * 4); in npcm_i2c_init_clk()1826 if (sclfrq < SCLFRQ_MIN || sclfrq > SCLFRQ_MAX) in npcm_i2c_init_clk()1839 sclfrq = 0; in npcm_i2c_init_clk()1863 sclfrq = 0; in npcm_i2c_init_clk()1900 iowrite8(FIELD_PREP(I2CCTL2_SCLFRQ6_0, sclfrq & 0x7F), in npcm_i2c_init_clk()1904 iowrite8(fast_mode | FIELD_PREP(I2CCTL3_SCLFRQ8_7, (sclfrq >> 7) & 0x3), in npcm_i2c_init_clk()