u-boot-brain/test
Simon Glass 8a45b22057 gpio: Add a way to read 3-way strapping pins
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>
2021-03-03 15:40:47 -05:00
..
cmd test: missing dependency for test/cmd/setexpr.c 2021-02-24 16:51:48 -05:00
dm gpio: Add a way to read 3-way strapping pins 2021-03-03 15:40:47 -05:00
env env: Allow returning errors from hdelete_r() 2020-12-04 16:09:06 -05:00
fs Consistently use nproc for counting the CPUs 2020-01-30 13:30:35 -05:00
image test: Update test-imagetools.sh to match new syntax 2019-03-08 11:31:44 -05:00
lib common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
log common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
optee common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
overlay common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
py test: py: add pygit2 and pyelftools to requirements.txt 2021-02-16 11:48:20 -05:00
stdint Remove <inttypes.h> includes and PRI* usages in printf() entirely 2018-09-10 20:48:17 -04:00
trace SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bloblist.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
bootm.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
cmd_ut.c test: missing dependency for test/cmd/setexpr.c 2021-02-24 16:51:48 -05:00
command_ut.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
common.sh Consistently use nproc for counting the CPUs 2020-01-30 13:30:35 -05:00
compression.c test: Use ut_asserteq_mem() where possible 2020-05-19 14:01:47 -04:00
Kconfig test: linking test/compression.c fails 2020-11-05 09:11:31 -07:00
Makefile test: inconsistent bootm tests 2021-01-29 10:36:49 -05:00
nokia_rx51_test.sh Nokia RX-51: Add test for U-Boot serial console 2021-01-12 10:59:04 +05:30
print_ut.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
run test: Run SPL unit tests 2020-10-29 14:42:18 -06:00
str_ut.c test: correct the test prefix in ut str 2021-01-16 14:49:09 -05:00
time_ut.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
unicode_ut.c efi_loader: Add size checks to efi_create_indexed_name() 2020-12-31 14:33:23 +01:00
ut.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00