27 Aug, 2019

1 commit

  • Add management of Bit 1 of USART_ISR = FE: Framing error
    This bit is set by hardware when a de-synchronization, excessive noise
    or a break character is detected. It is cleared by software, writing 1
    to the FECF bit in the USART_ICR register (for stm32 after f4).

    Signed-off-by: Patrick Delaunay

    Patrick Delaunay
     

01 Oct, 2018

1 commit

  • Since commit 7b3b74d32127 ("serial: serial_stm32: Enable overrun")
    on STM32F7xx based boards, the first lines of serial output are
    missing during boot (we no more see the U-Boot release version,
    board model and DRAM size).

    By enabling the uart FIFO on STM32F7, the complete U-boot log
    can be sent correctly.

    Signed-off-by: Patrice Chotard

    Patrice Chotard
     

27 May, 2018

2 commits


07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

29 Apr, 2018

2 commits

  • Uart status register is named USART_ISR on STM32F7, STM32H7
    and STM32MP1 SoCs family, but USART_SR only on STM32F4 SoCs.

    Use USART_ISR_ prefix instead of USART_SR_ .

    Signed-off-by: Patrice Chotard

    Patrice Chotard
     
  • Enable uart overrun feature which allows to benefits of uart
    FIFO usage.

    Previously overrun management was disabled, this has to effect
    to bypassed the uart FIFO usage even if FIFO was enabled.
    In particular configuration, for example when video console is
    enabled, copy/pasting a long command line in console results in
    corruption. This is due to the fact that a lot of time is consumed
    in flushing the cache during frame buffer update, so uart chars are
    not read fast enough.

    By using uart FIFO and managing overrun, long command line can by
    copy/paste in console without being corrupted.

    Signed-off-by: Patrice Chotard

    Patrice Chotard
     

20 Jan, 2018

1 commit