]> git.baikalelectronics.ru Git - uboot.git/commit
gpio: sandbox: Add GPIOD_IS_AF for gpio configured in alternate function
authorPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 30 Aug 2022 12:09:14 +0000 (14:09 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 15 Sep 2022 13:55:30 +0000 (09:55 -0400)
commit6b7699975409380c84b321326601197a4e299741
tree0c2b7993902b2a1ade43b7dce4bcb00b12d8fd02
parentba27976177b356c1b6666dd88c5f76002e97e318
gpio: sandbox: Add GPIOD_IS_AF for gpio configured in alternate function

This allows to test if a pin's label if displayed using gpio_get_status()
when this pin is configured in alternate function.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
drivers/gpio/sandbox.c
include/asm-generic/gpio.h
include/dt-bindings/gpio/sandbox-gpio.h
test/dm/gpio.c