u-boot/drivers/core
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
..
acpi.c common: Drop display_options.h from common header 2022-08-10 13:46:55 -04:00
device-remove.c dm: core: Use device_foreach_child where possible 2022-06-28 03:09:51 +01:00
device.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
devres.c dm: core: Use device_foreach_child where possible 2022-06-28 03:09:51 +01:00
dump.c dm: core: Adjust dump-sorting to get stats only when needed 2023-10-04 09:25:20 -06:00
fdtaddr.c core: introduce dev_read_addr_name[_size]_ptr() functions 2023-10-13 10:15:41 -07:00
Kconfig dm: core: Correct help in TPL_DM and VPL_DM 2023-10-06 14:38:12 -04:00
lists.c dm: core: Fix iteration over driver_info records 2022-12-02 08:39:00 -05:00
Makefile spl: Allow enabling SPL_OF_REAL and SPL_OF_PLATDATA at the same time 2023-10-17 20:50:52 -04:00
of_access.c dm: core: Add a way to delete a node 2023-10-06 14:38:13 -04:00
of_addr.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
of_extra.c net: introduce a helper to determine whether to use in-band autoneg 2021-11-23 09:57:55 +02:00
ofnode.c serial: zynqmp: Fetch baudrate from dtb and update 2023-11-07 13:47:08 +01:00
read.c core: introduce dev_read_addr_name[_size]_ptr() functions 2023-10-13 10:15:41 -07:00
read_extra.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
regmap.c core: remap: fix regmap_init_mem_plat() reg size handeling 2023-05-06 17:28:18 +08:00
root.c lib: acpi: Fix linking SPL when ACPIGEN is enabled 2023-10-17 20:50:52 -04:00
simple-bus.c treewide: Use OF_REAL instead of !OF_PLATDATA 2021-09-25 09:46:15 -06:00
simple-pm-bus.c simple-pm-bus: Use -ENOSYS for checking missing system call 2021-04-06 16:33:19 +12:00
syscon-uclass.c core: remap: fix regmap_init_mem_plat() reg size handeling 2023-05-06 17:28:18 +08:00
tag.c dm: core: Add a command to show driver model statistics 2022-06-28 03:09:52 +01:00
uclass.c dm: core: introduce uclass_get_device_by_of_path() 2023-04-28 11:48:59 -06:00
util.c pci: serial: Support reading PCI-register size with base 2023-10-06 14:38:13 -04:00