i2c: stm32f7: Fix SDADEL minimum formula
It conforms with Reference Manual I2C timing section. Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com> Reviewed-by: Patrick DELAUNAY <patrick.delaunay@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
3351768ef9
commit
e87da7521f
@ -500,7 +500,7 @@ static int stm32_i2c_compute_solutions(struct stm32_i2c_setup *setup,
|
||||
af_delay_max = setup->analog_filter ?
|
||||
STM32_I2C_ANALOG_FILTER_DELAY_MAX : 0;
|
||||
|
||||
sdadel_min = setup->fall_time - i2c_specs[setup->speed].hddat_min -
|
||||
sdadel_min = i2c_specs[setup->speed].hddat_min + setup->fall_time -
|
||||
af_delay_min - (setup->dnf + 3) * i2cclk;
|
||||
|
||||
sdadel_max = i2c_specs[setup->speed].vddat_max - setup->rise_time -
|
||||
|
Loading…
Reference in New Issue
Block a user