commit | 5935652aa7c2ebd2a0a8467cf46ce17dba176243 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu Feb 04 21:22:07 2021 -0700 |
committer | Tom Rini <trini@konsulko.com> | Wed Mar 03 15:40:11 2021 -0500 |
tree | 8f06253a12e4a364aa51092ca31423a6e97b3910 | |
parent | ac379397cbbf41b7063dbec477b2b06be9038649 [diff] |
gpio: sandbox: Track whether a GPIO is driven 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> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>