diff options
author | Patrice Chotard <patrice.chotard@foss.st.com> | 2022-08-30 14:09:14 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-09-15 09:55:30 -0400 |
commit | f6f681642f0d730887bfe944b029cb6f76a35fb6 (patch) | |
tree | 0c2b7993902b2a1ade43b7dce4bcb00b12d8fd02 /include/dt-bindings/gpio/sandbox-gpio.h | |
parent | 2c38f7c31806c5724a2f9c58a47cf76979fd6f0a (diff) |
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>
Diffstat (limited to 'include/dt-bindings/gpio/sandbox-gpio.h')
-rw-r--r-- | include/dt-bindings/gpio/sandbox-gpio.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dt-bindings/gpio/sandbox-gpio.h b/include/dt-bindings/gpio/sandbox-gpio.h index e4bfdb3ce1d..05f98365839 100644 --- a/include/dt-bindings/gpio/sandbox-gpio.h +++ b/include/dt-bindings/gpio/sandbox-gpio.h @@ -21,4 +21,7 @@ /* Bit 18 express GPIO output is active */ #define GPIO_OUT_ACTIVE 0x40000 +/* Bit 19 express GPIO set as alternate function */ +#define GPIO_AF 0x80000 + #endif |