]> git.dujemihanovic.xyz Git - u-boot.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)
commitf6f681642f0d730887bfe944b029cb6f76a35fb6
tree0c2b7993902b2a1ade43b7dce4bcb00b12d8fd02
parent2c38f7c31806c5724a2f9c58a47cf76979fd6f0a
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