
21 Jan
2021
21 Jan
'21
11:19 a.m.
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@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@foss.st.com
Thanks
Patrick