u-boot/test
Diego Rondini dd2b8c1155 cmd: gpio: Add gpio read subcommand
As explained in commit 4af2a33ee5 ("cmd: gpio: Make `gpio input`
return pin value again") the `gpio input` is used in scripts to obtain
the value of a pin, despite the fact that CMD_RET_FAILURE is
indistinguishable from a valid pin value.
To be able to detect failures and properly use the value of a GPIO in
scripts we introduce the `gpio read` command that sets the variable
`name` to the value of the pin. Return code of the `gpio read` command
can be used to check for CMD_RET_SUCCESS or CMD_RET_FAILURE.
CONFIG_CMD_GPIO_READ is used to enable the `gpio read` command.

Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
2022-04-20 11:14:39 -04:00
..
cmd led: Configure LED default-state on boot 2022-04-14 15:39:15 -04:00
common event: Add events for device probe/remove 2022-03-10 08:28:36 -05:00
dm dm: core: Allow devres to be disabled in SPL 2022-04-18 17:53:56 -04:00
env sandbox: add test of CONFIG_ENV_IMPORT_FDT 2021-05-04 12:52:30 -04:00
fs
image sandbox: test: Tidy up spl_test_load() calls 2022-03-18 19:24:24 -06:00
lib abuf: Correct a corner case with abuf_realloc() 2022-04-06 14:01:42 -04:00
log doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
optee test: Add a macros for finding tests in linker_lists 2021-03-12 09:57:30 -05:00
overlay test: Add a macros for finding tests in linker_lists 2021-03-12 09:57:30 -05:00
py cmd: gpio: Add gpio read subcommand 2022-04-20 11:14:39 -04:00
stdint
trace
bloblist.c bloblist: Add functions to obtain base address and size 2022-01-13 09:13:41 -07:00
bootm.c test: Add a macros for finding tests in linker_lists 2021-03-12 09:57:30 -05:00
cmd_ut.c test: add first autoboot unit tests 2021-07-23 13:36:20 -04:00
command_ut.c
common.sh
compression.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
Kconfig lib: add crypt subsystem 2021-07-23 13:36:14 -04:00
Makefile test: add first autoboot unit tests 2021-07-23 13:36:20 -04:00
nokia_rx51_test.sh Nokia RX-51: Add check for /lib/ld-linux.so.2 in test script 2021-07-15 17:56:05 +05:30
print_ut.c test: test field truncation in snprint() 2022-02-11 11:29:23 -05:00
run test: Run sandbox_spl tests on sandbox_noinst 2021-03-26 17:03:09 +13:00
str_ut.c lib: Allow using 0x when a decimal value is requested 2021-08-02 13:32:14 -04:00
test-main.c event: Add a simple test 2022-03-10 08:28:36 -05:00
time_ut.c
unicode_ut.c test: test UTF-16 truncation in snprintf() 2022-02-05 20:20:01 +01:00
ut.c test: Add a way to skip console checking until a string matches 2021-09-16 14:39:40 -04:00