Home
last modified time | relevance | path

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

/openbmc/linux/drivers/i2c/busses/
H A Di2c-npcm7xx.c1812 u32 sclfrq = 0; in npcm_i2c_init_clk() local
1824 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()