mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
8a45b22057
Using the internal vs. external pull resistors it is possible to get 27 different combinations from 3 strapping pins. Add an implementation of this. This involves updating the sandbox GPIO driver to model external and (weaker) internal pull resistors. The get_value() method now takes account of what is driving a pin: sandbox: GPIOD_EXT_DRIVEN - in which case GPIO_EXT_HIGH provides the value outside source - in which case GPIO_EXT_PULL_UP/DOWN indicates the external state and we work the final state using those flags and the internal GPIOD_PULL_UP/DOWN flags Of course the outside source does not really exist in sandbox. We are just modelling it for test purpose. Signed-off-by: Simon Glass <sjg@chromium.org> |
||
---|---|---|
.. | ||
bitops | ||
atomic-long.h | ||
atomic.h | ||
bitsperlong.h | ||
global_data.h | ||
gpio.h | ||
int-ll64.h | ||
io.h | ||
ioctl.h | ||
pe.h | ||
sections.h | ||
signal.h | ||
types.h | ||
u-boot.h | ||
unaligned.h |