]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/serial/Kconfig
serial: serial-uclass: Add generic serial RX buffer support
[people/ms/u-boot.git] / drivers / serial / Kconfig
index 1c2c5d66e1d67a6f8a73d1ef48556bc8eaa6dc6a..aeed538fa4e8189d318a4d99b63576e9692ebed0 100644 (file)
@@ -64,6 +64,21 @@ config DM_SERIAL
          implements serial_putc() etc. The uclass interface is
          defined in include/serial.h.
 
+config SERIAL_RX_BUFFER
+       bool "Enable RX buffer for serial input"
+       depends on DM_SERIAL
+       help
+         Enable RX buffer support for the serial driver. This enables
+         pasting longer strings, even when the RX FIFO of the UART is
+         not big enough (e.g. 16 bytes on the normal NS16550).
+
+config SERIAL_RX_BUFFER_SIZE
+       int "RX buffer size"
+       depends on SERIAL_RX_BUFFER
+       default 256
+       help
+         The size of the RX buffer (needs to be power of 2)
+
 config SPL_DM_SERIAL
        bool "Enable Driver Model for serial drivers in SPL"
        depends on DM_SERIAL