diff options
author | Anup Patel <apatel@ventanamicro.com> | 2022-08-08 09:33:21 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-08-08 09:33:21 +0530 |
commit | 26bbff5f76e0ecd7a8e3f322961c481b73097a65 (patch) | |
tree | 38c001e38b970758709c71af2cc002c788340de4 /lib/utils/serial/Kconfig | |
parent | de80e9337d812c47087ef568be2b3af2e1bbaf04 (diff) | |
download | opensbi-26bbff5f76e0ecd7a8e3f322961c481b73097a65.zip opensbi-26bbff5f76e0ecd7a8e3f322961c481b73097a65.tar.gz opensbi-26bbff5f76e0ecd7a8e3f322961c481b73097a65.tar.bz2 |
lib: utils/serial: Use kconfig for enabling/disabling drivers
We update serial drivers makefile to use kconfig for enabling/disabling
drivers. To avoid compile errors, we also enable appropriate serial
drivers for each platform.
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Tested-by: Andrew Jones <ajones@ventanamicro.com>
Acked-by: Atish Patra <atishp@rivosinc.com>
Tested-by: Atish Patra <atishp@rivosinc.com>
Diffstat (limited to 'lib/utils/serial/Kconfig')
-rw-r--r-- | lib/utils/serial/Kconfig | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/lib/utils/serial/Kconfig b/lib/utils/serial/Kconfig new file mode 100644 index 0000000..e114f26 --- /dev/null +++ b/lib/utils/serial/Kconfig @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: BSD-2-Clause + +menu "Serial Device Support" + +config FDT_SERIAL + bool "FDT based serial drivers" + default n + +if FDT_SERIAL + +config FDT_SERIAL_GAISLER + bool "Gaisler UART FDT driver" + select SERIAL_GAISLER + default n + +config FDT_SERIAL_HTIF + bool "Host transfer interface (HTIF) UART FDT driver" + default n + +config FDT_SERIAL_SHAKTI + bool "Shakti UART FDT driver" + select SERIAL_SHAKTI + default n + +config FDT_SERIAL_SIFIVE + bool "SiFive UART FDT driver" + select SERIAL_SIFIVE + default n + +config FDT_SERIAL_LITEX + bool "LiteX UART FDT driver" + select SERIAL_LITEX + default n + +config FDT_SERIAL_UART8250 + bool "8250 UART FDT driver" + select SERIAL_UART8250 + default n + +config FDT_SERIAL_XILINX_UARTLITE + bool "Xilinx UART Lite FDT driver" + select SERIAL_XILINX_UARTLITE + default n + +endif + +config SERIAL_GAISLER + bool "Gaisler UART support" + default n + +config SERIAL_SHAKTI + bool "Shakti UART support" + default n + +config SERIAL_SIFIVE + bool "SiFive UART support" + default n + +config SERIAL_LITEX + bool "LiteX UART support" + default n + +config SERIAL_UART8250 + bool "8250 UART support" + default n + +config SERIAL_XILINX_UARTLITE + bool "Xilinx UART Lite support" + default n + +endmenu |