
8 Aug
2018
8 Aug
'18
11:55 a.m.
On 3 August 2018 at 09:01, Patrice Chotard patrice.chotard@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@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@chromium.org