Skip to content

Commit f673148

Browse files
geertugregkh
authored andcommitted
tty: serial: sh-sci: Hide number of ports config question
Auto-configure the maximum number of serial ports based on how many can be present on the architecture: - 3 on H8/300, - 10 on SuperH, - 18 on Reneas ARM. The default can still be overridden if CONFIG_EXPERT is enabled. Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1598e38 commit f673148

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/tty/serial/Kconfig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,9 +761,11 @@ config SERIAL_SH_SCI
761761
select SERIAL_MCTRL_GPIO if GPIOLIB
762762

763763
config SERIAL_SH_SCI_NR_UARTS
764-
int "Maximum number of SCI(F) serial ports"
764+
int "Maximum number of SCI(F) serial ports" if EXPERT
765765
depends on SERIAL_SH_SCI
766-
default "2"
766+
default "3" if H8300
767+
default "10" if SUPERH
768+
default "18" if ARCH_RENESAS
767769

768770
config SERIAL_SH_SCI_CONSOLE
769771
bool "Support for console on SuperH SCI(F)"

0 commit comments

Comments
 (0)