[PATCH v2 4/4] gpio: sandbox: Add GPIOD_IS_AF for gpio configured in alternate function

Simon Glass sjg at chromium.org
Tue Aug 9 21:51:09 CEST 2022


On Tue, 9 Aug 2022 at 01:14, Patrice Chotard
<patrice.chotard at foss.st.com> wrote:
>
> 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 at foss.st.com>
> ---
>
> (no changes since v1)
>
>  drivers/gpio/sandbox.c                  |  5 +++++
>  include/asm-generic/gpio.h              |  1 +
>  include/dt-bindings/gpio/sandbox-gpio.h |  3 +++
>  test/dm/gpio.c                          | 30 +++++++++++++++++++++++++
>  4 files changed, 39 insertions(+)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list