Searched refs:half_cycle (Results 1 – 5 of 5) sorted by relevance
115 uint32_t half_cycle = sclk_freq / bus_freq / 2; in i2c_ll_cal_bus_clk() local118 clk_cal->scl_low = half_cycle; in i2c_ll_cal_bus_clk()120 clk_cal->scl_high = (bus_freq <= 50000) ? half_cycle : (half_cycle / 5 * 4 + 4); in i2c_ll_cal_bus_clk()121 clk_cal->scl_wait_high = half_cycle - clk_cal->scl_high; in i2c_ll_cal_bus_clk()122 clk_cal->sda_hold = half_cycle / 2; in i2c_ll_cal_bus_clk()124 clk_cal->sda_sample = half_cycle / 2; in i2c_ll_cal_bus_clk()125 clk_cal->setup = half_cycle; in i2c_ll_cal_bus_clk()126 clk_cal->hold = half_cycle; in i2c_ll_cal_bus_clk()129 clk_cal->tout = (int)(sizeof(half_cycle) * 8 - __builtin_clz(5 * half_cycle)) + 2; in i2c_ll_cal_bus_clk()
120 uint32_t half_cycle = sclk_freq / bus_freq / 2; in i2c_ll_cal_bus_clk() local123 clk_cal->scl_low = half_cycle; in i2c_ll_cal_bus_clk()125 …int scl_wait_high = (bus_freq <= 50000) ? 0 : (half_cycle / 8); // compensate the time when freq >… in i2c_ll_cal_bus_clk()127 clk_cal->scl_high = half_cycle - scl_wait_high; in i2c_ll_cal_bus_clk()128 clk_cal->sda_hold = half_cycle / 4; in i2c_ll_cal_bus_clk()130 clk_cal->sda_sample = half_cycle / 2; in i2c_ll_cal_bus_clk()131 clk_cal->setup = half_cycle; in i2c_ll_cal_bus_clk()132 clk_cal->hold = half_cycle; in i2c_ll_cal_bus_clk()135 clk_cal->tout = (int)(sizeof(half_cycle) * 8 - __builtin_clz(5 * half_cycle)) + 2; in i2c_ll_cal_bus_clk()
124 uint32_t half_cycle = sclk_freq / bus_freq / 2; in i2c_ll_cal_bus_clk() local127 clk_cal->scl_low = half_cycle; in i2c_ll_cal_bus_clk()129 …int scl_wait_high = (bus_freq <= 50000) ? 0 : (half_cycle / 8); // compensate the time when freq >… in i2c_ll_cal_bus_clk()131 clk_cal->scl_high = half_cycle - scl_wait_high; in i2c_ll_cal_bus_clk()132 clk_cal->sda_hold = half_cycle / 4; in i2c_ll_cal_bus_clk()134 clk_cal->sda_sample = half_cycle / 2; in i2c_ll_cal_bus_clk()135 clk_cal->setup = half_cycle; in i2c_ll_cal_bus_clk()136 clk_cal->hold = half_cycle; in i2c_ll_cal_bus_clk()139 clk_cal->tout = (int)(sizeof(half_cycle) * 8 - __builtin_clz(5 * half_cycle)) + 2; in i2c_ll_cal_bus_clk()
110 uint32_t half_cycle = source_clk / bus_freq / 2; in i2c_ll_cal_bus_clk() local112 clk_cal->scl_low = half_cycle; in i2c_ll_cal_bus_clk()114 clk_cal->scl_high = half_cycle / 2 + 2; in i2c_ll_cal_bus_clk()115 clk_cal->scl_wait_high = half_cycle - clk_cal->scl_high; in i2c_ll_cal_bus_clk()116 clk_cal->sda_hold = half_cycle / 2; in i2c_ll_cal_bus_clk()118 clk_cal->sda_sample = half_cycle / 2 - 1; in i2c_ll_cal_bus_clk()119 clk_cal->setup = half_cycle; in i2c_ll_cal_bus_clk()120 clk_cal->hold = half_cycle; in i2c_ll_cal_bus_clk()122 clk_cal->tout = half_cycle * 20; in i2c_ll_cal_bus_clk()
112 uint32_t half_cycle = source_clk / bus_freq / 2; in i2c_ll_cal_bus_clk() local113 clk_cal->scl_low = half_cycle; in i2c_ll_cal_bus_clk()114 clk_cal->scl_high = half_cycle; in i2c_ll_cal_bus_clk()115 clk_cal->sda_hold = half_cycle / 2; in i2c_ll_cal_bus_clk()117 clk_cal->setup = half_cycle; in i2c_ll_cal_bus_clk()118 clk_cal->hold = half_cycle; in i2c_ll_cal_bus_clk()119 clk_cal->tout = half_cycle * 20; //default we set the timeout value to 10 bus cycles. in i2c_ll_cal_bus_clk()