20 Jan, 2018

1 commit


16 Jan, 2018

1 commit


10 Jan, 2018

1 commit


30 Nov, 2017

1 commit


28 Nov, 2017

1 commit


17 Nov, 2017

1 commit

  • In U-boot, serial_tstc was use to determine is there have a character in
    serial console that pending for read. If there is no "pending" function
    implemented in serial driver, the serial-uclass will return "true(1)"
    to indicate there have a character pending to read.

    Thus, read a character from nulldev serial will result in continuous
    getting -EAGAIN return which might lead system to hang.

    This commit is to fix a bug in nulldev serial which implement "pending"
    function in nulldev serial to always indicate there is no character in
    console that pending for read.

    Signed-off-by: Wilson Lee
    Cc: Joe Hershberger
    Cc: Keng Soon Cheah
    Cc: Chen Yee Chew
    Cc: Bin Meng

    Wilson Lee
     

06 Nov, 2017

2 commits


16 Oct, 2017

1 commit


11 Oct, 2017

1 commit


09 Oct, 2017

6 commits


24 Sep, 2017

1 commit

  • If the clock framework provides the driver with valid clock,
    enable them, otherwise the SCIF might not work if the clock
    are not enabled prior to the driver probe.

    Signed-off-by: Marek Vasut
    Cc: Nobuhiro Iwamatsu
    Signed-off-by: Nobuhiro Iwamatsu

    Marek Vasut
     

22 Sep, 2017

1 commit


13 Sep, 2017

1 commit

  • Some device the serial console's initialization cannot run early during
    the boot process. Hence, nulldev serial device is helpful on that
    situation.

    For example, if the serial module was implemented in FPGA. Serial
    initialization is prohibited to run until the FPGA was programmed.

    This commit is to adding nulldev serial driver. This will allows the
    default console to be specified as a nulldev.

    Signed-off-by: Joe Hershberger
    Signed-off-by: Keng Soon Cheah
    Cc: Chen Yee Chew

    Keng Soon Cheah
     

24 Aug, 2017

2 commits

  • Pasting longer lines into the U-Boot console prompt sometimes leads to
    characters missing. One problem here is the small 16-byte FIFO of the
    legacy NS16550 UART, e.g. on x86 platforms.

    This patch now introduces a Kconfig option to enable RX buffer support
    for all DM based serial drivers. With this option enabled, I was
    able paste really long lines into the U-Boot console, without any
    characters missing.

    Signed-off-by: Stefan Roese
    Cc: Simon Glass
    Cc: Bin Meng
    Cc: Tom Rini
    Reviewed-by: Bin Meng
    Tested-by: Bin Meng

    Stefan Roese
     
  • This reverts commit 6822cf3ec7c8768b8727573b8f4b2cb3d870b881.

    As Bin Meng has tested and pointed out, we don't need the RX interrupt
    for the RX buffer support at all. Just reading all available characters
    into a buffer is sufficient to solve the problem with the dropped
    characters upon long lines pasted into the U-Boot prompt. Since this
    RX buffer support can be implemented in a generic way, without any
    device specifica (e.g. for the ns16550), I'll post a new patch with
    a new serial RX buffer support for DM, which all DM based serial
    drivers can use.

    Signed-off-by: Stefan Roese
    Cc: Simon Glass
    Cc: Bin Meng
    Cc: Tom Rini
    Reviewed-by: Bin Meng

    Stefan Roese
     

16 Aug, 2017

1 commit

  • We are now using an env_ prefix for environment functions. Rename these
    two functions for consistency. Also add function comments in common.h.

    Quite a few places use getenv() in a condition context, provoking a
    warning from checkpatch. These are fixed up in this patch also.

    Suggested-by: Wolfgang Denk
    Signed-off-by: Simon Glass

    Simon Glass
     

03 Aug, 2017

2 commits


01 Aug, 2017

1 commit

  • With driver model the serial device is often not called "serial". Mark
    driver-model stdio devices so that they can be detected and we can look up
    the uclass. This is a more reliable way of finding out whether the console
    is connected to a serial device or not.

    Signed-off-by: Simon Glass

    Simon Glass
     

31 Jul, 2017

1 commit


27 Jul, 2017

1 commit

  • Some platforms have very limited SRAM to run SPL code, so there may
    not be the same amount space for a malloc pool before relocation in
    the SPL stage as the normal U-Boot stage.

    Make SPL and (the full) U-Boot stage use independent SYS_MALLOC_F_LEN,
    so the size of pre-relocation malloc pool can be configured memory
    space independently.

    Signed-off-by: Andy Yan
    Reviewed-by: Tom Rini
    Acked-by: Philipp Tomsich
    Reviewed-by: Philipp Tomsich
    [fixed up commit-message:]
    Signed-off-by: Philipp Tomsich

    Andy Yan
     

26 Jul, 2017

2 commits


24 Jul, 2017

1 commit

  • Pasting longer lines into the U-Boot console prompt sometimes leads to
    characters missing. One problem here is the small 16-byte FIFO of the
    legacy NS16550 UART, e.g. on x86 platforms.

    This patch now introduces a Kconfig option to enable RX interrupt
    buffer support for NS16550 style UARTs. With this option enabled, I was
    able paste really long lines into the U-Boot console, without any
    characters missing.

    Signed-off-by: Stefan Roese
    Reviewed-by: Simon Glass
    Cc: Bin Meng
    [trini: Guard ns16550_serial_remove with
    CONFIG_IS_ENABLED(SERIAL_PRESENT) to match struct assignment]
    Signed-off-by: Tom Rini

    Stefan Roese
     

23 Jul, 2017

1 commit


12 Jul, 2017

9 commits