drivers: serial: Name the NS16550 variant Kconfig choice

Naming this choice allows setting a default value in defconfig.

Signed-off-by: Grant Ramsay <gramsay@enphaseenergy.com>
This commit is contained in:
Grant Ramsay 2023-02-01 08:33:22 +13:00 committed by Carles Cufí
parent 6ca406d282
commit f92dd6d357
3 changed files with 12 additions and 3 deletions

View file

@ -22,8 +22,6 @@ CONFIG_XIP=n
# Serial Drivers
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_UART_NS16550=y
CONFIG_UART_NS16550_VARIANT_NS16750=y
# Enable Console
CONFIG_CONSOLE=y

View file

@ -30,7 +30,7 @@ config UART_NS16550_DRV_CMD
Says n if not sure.
choice
choice UART_NS16550_VARIANT
prompt "UART variant"
default UART_NS16550_VARIANT_NS16550
help

View file

@ -23,6 +23,17 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
int
default 200000000
if SERIAL
config UART_NS16550
default y
choice UART_NS16550_VARIANT
default UART_NS16550_VARIANT_NS16750
endchoice
endif # SERIAL
source "soc/arm64/ti_sitara/am6x/Kconfig.defconfig.am62*"
endif # SOC_SERIES_AM6X_A53