u-boot/arch
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
..
arc arc: Remove common.h usage 2023-10-24 16:34:45 -04:00
arm arm: mach-tegra: enable sysreset driver 2023-11-03 17:40:11 -04:00
m68k Kconfig: Remove all default n/no options 2023-10-30 15:32:49 -04:00
microblaze microblaze: Remove common.h usage 2023-10-24 16:34:45 -04:00
mips bmips: Add Inteno XG6846 board 2023-11-06 10:20:21 -05:00
nios2 event: Convert existing spy records to simple 2023-08-31 13:16:54 -04:00
powerpc mpc85xx: relocate code in non-SPL build 2023-10-28 09:17:55 -04:00
riscv riscv: dts: jh7110: Add rng device tree node 2023-11-02 17:45:53 +08:00
sandbox serial: zynqmp: Fetch baudrate from dtb and update 2023-11-07 13:47:08 +01:00
sh spl: Use SYS_MALLOC_F instead of SYS_MALLOC_F_LEN 2023-10-06 14:38:12 -04:00
x86 common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
xtensa treewide: unify the linker symbol reference format 2023-08-09 09:21:42 -04:00
.gitignore
Kconfig cmd: mbr: Allow 4 MBR partitions without need for extended 2023-10-24 17:05:24 -04:00
Kconfig.nxp LFU-544: Kconfig.nxp: Fixed secure boot on LS-CH2 platforms 2023-07-06 13:04:56 +08:00
u-boot-elf.lds