mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 23:47:24 +00:00
7e0a96d559
It is convenient to be able to adjust some of the flags for a GPIO while leaving others alone. Add a function for this. Update dm_gpio_set_dir_flags() to make use of this. Also update dm_gpio_set_value() to use this also, since this allows the open-drain / open-source features to be implemented directly in the driver, rather than using the uclass workaround. Update the sandbox tests accordingly. This involves a lot of changes to dm_test_gpio_opendrain_opensource() since we no-longer have the direciion being reported differently depending on the open drain/open source flags. Also update the STM32 drivers to let the uclass handle the active low/high logic. Drop the GPIOD_FLAGS_OUTPUT() macro which is no-longer used. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Kory Maincent <kory.maincent@bootlin.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Tested-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Tested-by: Patrick Delaunay <patrick.delaunay@foss.st.com> |
||
---|---|---|
.. | ||
aspeed | ||
ath79 | ||
broadcom | ||
exynos | ||
intel | ||
mediatek | ||
meson | ||
mscc | ||
mtmips | ||
mvebu | ||
nexell | ||
nxp | ||
renesas | ||
rockchip | ||
uniphier | ||
Kconfig | ||
Makefile | ||
pinctrl-at91-pio4.c | ||
pinctrl-at91.c | ||
pinctrl-generic.c | ||
pinctrl-kendryte.c | ||
pinctrl-qe-io.c | ||
pinctrl-sandbox.c | ||
pinctrl-single.c | ||
pinctrl-sti.c | ||
pinctrl-stmfx.c | ||
pinctrl-uclass.c | ||
pinctrl_pic32.c | ||
pinctrl_stm32.c |