[U-Boot] [PATCH v2 5/5] test: dm: Add gpio get_alternate_function ops test
Simon Glass
sjg at chromium.org
Wed Aug 8 09:55:27 UTC 2018
On 3 August 2018 at 09:01, Patrice Chotard <patrice.chotard at st.com> wrote:
> In order to test get_alternate_function ops, add
> sandbox_gpio_set_function() and sandbox_gpio_set_alternate_function()
> to be able to configure a pin not as a GPIO and to select the
> alternate function index.
>
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> ---
>
> Changes in v2:
> - Rename get_function_number to get_alternate_function
> in test/dm/gpio.c, drivers/gpio/sandbox.c and in
> arch/sandbox/include/asm/gpio.h
>
> arch/sandbox/include/asm/gpio.h | 24 ++++++++++++++++++++++++
> drivers/gpio/sandbox.c | 27 +++++++++++++++++++++++++++
> test/dm/gpio.c | 13 +++++++++++++
> 3 files changed, 64 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list