Searched hist:"3 f8e54189a3aa48a6f77f281ae73c0eae083e9fa" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/drivers/ |
| H A D | stm32_gpio.c | 3f8e54189a3aa48a6f77f281ae73c0eae083e9fa Tue May 06 18:50:57 UTC 2025 Patrick Delaunay <patrick.delaunay@foss.st.com> drivers: stm32_gpio: move dt_flags support in the new ops configure
Move the GPIO configuration based on dt_flags previously done in get_dt ops in the new gpio configure ops.
To avoid glitch on GPIO line, the write in register GPIO_MODER is only kept in the ops stm32_gpio_set_direction(), called by gpio framework function gpio_configure() after the call of configure ops, so we have no more transient GPIO input configuration.
Moreover, this patch allows to correctly apply the dt_flags when they are modify after the call of stm32_gpio_get_dt(), for example in drivers regulator fixed and gpio.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
|