Skip to content
  • Algapally Santosh Sagar's avatar
    serial: zynqmp: Fetch baudrate from dtb and update · bd9ff681
    Algapally Santosh Sagar authored
    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 c4df0f6f
    
     ("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: default avatarAlgapally Santosh Sagar <santoshsagar.algapally@amd.com>
    Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh...
    bd9ff681