u-boot/test
Algapally Santosh Sagar bd9ff681bd serial: zynqmp: Fetch baudrate from dtb and update
The baudrate configured in .config is taken by default by serial. If
change of baudrate is required then the .config needs to changed and
u-boot recompilation is required or the u-boot environment needs to be
updated.

To avoid this, support is added to fetch the baudrate directly from the
device tree file and update.
The serial, prints the log with the configured baudrate in the dtb.
The commit c4df0f6f31 ("arm: mvebu: Espressobin: Set default value for
$fdtfile env variable") is taken as reference for changing the default
environment variable.

The default environment stores the default baudrate value, When default
baudrate and dtb baudrate are not same glitches are seen on the serial.
So, the environment also needs to be updated with the dtb baudrate to
avoid the glitches on the serial.

Also add test to cover this new function.

Signed-off-by: Algapally Santosh Sagar <santoshsagar.algapally@amd.com>
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Link: https://lore.kernel.org/r/20230921112043.3144726-3-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
2023-11-07 13:47:08 +01:00
..
boot bootstd: Handle a few special cases in cmdline_set_arg() 2023-11-01 12:26:44 -04:00
cmd cmd: mbr: Allow 4 MBR partitions without need for extended 2023-10-24 17:05:24 -04:00
common cli: Consume invalid escape sequences early 2023-10-24 16:34:45 -04:00
dm serial: zynqmp: Fetch baudrate from dtb and update 2023-11-07 13:47:08 +01:00
env sandbox: add test of CONFIG_ENV_IMPORT_FDT 2021-05-04 12:52:30 -04:00
fs Use grep -E or plain grep instead of egrep 2023-01-11 15:02:24 -05:00
fuzz cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
image test: spl: Add a test for the SPI load method 2023-10-17 20:50:52 -04:00
lib test: lmb: Add test for coalescing and overlap range 2023-10-09 15:24:31 -04:00
log log: Remove some places where we redefine LOGLEVEL 2022-12-23 10:07:03 -05: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 bootX measurements and measurement API moved to u-boot core 2023-10-27 19:27:29 -04: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 bloblist: Add functions to obtain base address and size 2022-01-13 09:13:41 -07:00
bootm.c test: Fix bootm_test_subst_var() running independently 2022-09-12 18:06:36 -04:00
cmd_ut.c bootX measurements and measurement API moved to u-boot core 2023-10-27 19:27:29 -04:00
command_ut.c unit-test: cover run_commandf() by test-cases 2023-03-30 15:09:59 -04:00
common.sh Consistently use nproc for counting the CPUs 2020-01-30 13:30:35 -05:00
compression.c test: compression: add zstd uncompression test 2023-01-18 19:41:15 -05:00
Kconfig test: spl: Split tests up and use some configs 2023-10-17 20:50:52 -04:00
Makefile test: spl: Split tests up and use some configs 2023-10-17 20:50:52 -04:00
print_ut.c test: print: Fix hexdump test on 64bit systems 2023-09-06 13:51:19 -04:00
run test: Run the VPL tests with 'make check' 2023-04-03 06:53:53 +12:00
str_ut.c lib: Add a function to split a string into substrings 2023-01-23 18:11:39 -05:00
test-main.c spl: Allow enabling SPL_OF_REAL and SPL_OF_PLATDATA at the same time 2023-10-17 20:50:52 -04:00
time_ut.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
unicode_ut.c test: unicode: fix a sizeof() vs ARRAY_SIZE() bug 2023-08-08 17:41:52 -04:00
ut.c test: Add a way to skip console checking until a string matches 2021-09-16 14:39:40 -04:00