[PATCH 14/15] gpio: sandbox: Track whether a GPIO is driven

Patrick DELAUNAY patrick.delaunay at foss.st.com
Thu Jan 21 11:19:51 CET 2021


Hi Simon,

On 1/15/21 3:04 PM, Simon Glass wrote:
> Add a new flag to keep track of whether sandbox is driving the pin, or
> whether it is expecting an input signal. If it is driving, then the value
> of the pin is the value being driven (0 or 1). If not driving, then we
> consider the value 0, since we don't currently handle things like pull-ups
> yet.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>   arch/sandbox/include/asm/gpio.h |  3 ++-
>   drivers/gpio/sandbox.c          | 21 +++++++++++++++------
>   2 files changed, 17 insertions(+), 7 deletions(-)
>

Reviewed-by: Patrick Delaunay <patrick.delaunay at foss.st.com>

Thanks

Patrick



More information about the U-Boot mailing list