u-boot/arch/sandbox/dts
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
..
include Makefile: Support include files for .dts files 2014-06-20 11:55:03 -06:00
cedit.dtsi expo: Update tests to include textline 2023-10-11 15:43:55 -04:00
cros-ec-keyboard.dtsi sandbox: avoid duplicate backslash input 2020-10-06 09:07:54 -06:00
Makefile Kbuild: Fix cleanup of *.dtbo for sandbox 2023-07-07 16:25:56 -04:00
other.dts sandbox: Support loading the other FDT 2022-09-29 16:09:56 -04:00
overlay0.dtso sandbox: rename overlay sources to .dtso 2023-10-11 13:22:32 -04:00
overlay1.dtso sandbox: rename overlay sources to .dtso 2023-10-11 13:22:32 -04:00
sandbox.dts sandbox: Use the generic VPL option to enable VPL 2023-03-02 17:45:58 -05:00
sandbox.dtsi test: Add sandbox TPM boot measurement 2023-10-27 13:17:21 +03:00
sandbox64.dts sandbox64: add support for NVMXIP QSPI 2023-04-27 17:01:14 -04:00
sandbox_pmic.dtsi dm: sandbox: i2c: Use new emulator parent uclass 2018-11-29 09:30:05 -07:00
sandbox_vpl.dtsi sandbox: Expand size for VPL image 2023-03-02 17:45:58 -05:00
test.dts serial: zynqmp: Fetch baudrate from dtb and update 2023-11-07 13:47:08 +01:00