Files
u-boot/drivers
Patrick Delaunay 1fd9eb68d6 i2c: stm32f7: move driver data of each instance in a privdata
Today all the I2C instance point on the same global
variable stm32_i2c_setup according the compatible: i2c_priv->setup =
pointer to the same driver data.

This patch changes this driver data (stm32f7_setup and stm32mp15_setup)
to a const struct and move the timing struct 'setup' as element of i2c
privdata, initialized in stm32_ofdata_to_platdata() with the driver
configuration data.

This patch solves issues when several I2C instance have not the same
clock source or not the same configuration: each timing setup is saved
is the I2C privdata.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2021-10-08 08:42:40 +02:00
..
2021-07-21 10:27:35 -06:00
2021-09-13 18:23:13 -04:00
2021-09-14 00:02:10 +01:00
2021-10-08 08:24:20 +02:00
2021-09-13 18:23:13 -04:00
2021-09-13 18:23:13 -04:00
2021-09-14 09:07:18 -04:00
2021-09-13 18:23:13 -04:00
2021-08-09 14:46:51 +02:00