]> git.baikalelectronics.ru Git - uboot.git/commit
gpio: sandbox: Use a separate flag for the value
authorSimon Glass <sjg@chromium.org>
Fri, 5 Feb 2021 04:22:00 +0000 (21:22 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 3 Mar 2021 20:38:58 +0000 (15:38 -0500)
commit78f9c0def620bc3068445328ed18762162a9d6e9
treeec92aa338e0f9ff8ee102702c99f2577c92cf9cc
parent036a70c93b5c56f36d1180ca0493ba270e398111
gpio: sandbox: Use a separate flag for the value

At present with the sandbox GPIO driver it is not possible to change the
value of GPIOD_IS_OUT_ACTIVE unless the GPIO is an output. This makes it
hard to test changing the flags since we need to be aware of the internal
workings of the driver.

The feature is designed to aid testing.

Split this feature out into a separate sandbox-specific flag, so that the
flags can change unimpeded. This will make it easier to allow updating the
flags in a future patch.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/include/asm/gpio.h
drivers/gpio/sandbox.c