Searched refs:i2c_speed (Results 1 – 5 of 5) sorted by relevance
35 uint32_t i2c_speed = 0u; in i2c_b91_configure() local52 i2c_speed = 100000u; in i2c_b91_configure()56 i2c_speed = 400000U; in i2c_b91_configure()69 i2c_set_master_clk((unsigned char)(sys_clk.pclk * 1000 * 1000 / (4 * i2c_speed))); in i2c_b91_configure()
834 (tscl_h >= stm32_i2c_charac[i2c_speed].hscl_min) && \857 uint32_t i2c_compute_scll_sclh(uint32_t clock_src_freq, uint32_t i2c_speed) in i2c_compute_scll_sclh() argument869 ti2cspeed = (NSEC_PER_SEC + (stm32_i2c_charac[i2c_speed].freq / 2U)) / in i2c_compute_scll_sclh()870 stm32_i2c_charac[i2c_speed].freq; in i2c_compute_scll_sclh()877 dnf_delay = stm32_i2c_charac[i2c_speed].dnf * ti2cclk; in i2c_compute_scll_sclh()879 clk_max = NSEC_PER_SEC / stm32_i2c_charac[i2c_speed].freq_min; in i2c_compute_scll_sclh()880 clk_min = NSEC_PER_SEC / stm32_i2c_charac[i2c_speed].freq_max; in i2c_compute_scll_sclh()897 if ((tscl_l > stm32_i2c_charac[i2c_speed].lscl_min) && in i2c_compute_scll_sclh()909 tscl_h + stm32_i2c_charac[i2c_speed].trise + in i2c_compute_scll_sclh()910 stm32_i2c_charac[i2c_speed].tfall; in i2c_compute_scll_sclh()[all …]
204 uint32_t i2c_speed = 0U; in i2c_sifive_configure() local224 i2c_speed = 100000U; /* 100 KHz */ in i2c_sifive_configure()227 i2c_speed = 400000U; /* 400 KHz */ in i2c_sifive_configure()238 prescale = (config->f_sys / (i2c_speed * 5U)) - 1; in i2c_sifive_configure()
28 uint32_t i2c_speed; member
64 if (data->current_timing.i2c_speed == 100000) { in i2c_stm32_get_config()68 } else if (data->current_timing.i2c_speed == 400000) { in i2c_stm32_get_config()72 } else if (data->current_timing.i2c_speed == 1000000) { in i2c_stm32_get_config()