Searched hist:"3 ebb138094876c478befcfe3f1c066480dd59d73" (Results 1 – 2 of 2) sorted by relevance
| /optee_os/core/include/drivers/ |
| H A D | stm32_i2c.h | 3ebb138094876c478befcfe3f1c066480dd59d73 Fri May 01 14:28:17 UTC 2020 Etienne Carriere <etienne.carriere@st.com> drivers: stm32_i2c: allow any bus frequency
Do not limit I2C bus to 3 frequencies (100KHz, 400KHz, 1MHz). Instead allow for any frequency up to 1MHz. Depending on the requested frequency defined in clock-frequency DT entry, use the I2C spec data from either Standard, Fast or Fast Plus mode.
This change removes use of rate IDs and use instead the rate value itself as identifiers, allowing more flexible implementation.
Changes local variable clock_src in i2c_setup_timing() from uint32_t to unsigned long for consistency.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com> Acked-by: Jerome Forissier <jerome@forissier.org>
|
| /optee_os/core/drivers/ |
| H A D | stm32_i2c.c | 3ebb138094876c478befcfe3f1c066480dd59d73 Fri May 01 14:28:17 UTC 2020 Etienne Carriere <etienne.carriere@st.com> drivers: stm32_i2c: allow any bus frequency
Do not limit I2C bus to 3 frequencies (100KHz, 400KHz, 1MHz). Instead allow for any frequency up to 1MHz. Depending on the requested frequency defined in clock-frequency DT entry, use the I2C spec data from either Standard, Fast or Fast Plus mode.
This change removes use of rate IDs and use instead the rate value itself as identifiers, allowing more flexible implementation.
Changes local variable clock_src in i2c_setup_timing() from uint32_t to unsigned long for consistency.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com> Acked-by: Jerome Forissier <jerome@forissier.org>
|