summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/Kconfig
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2017-11-30 16:11:58 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-15 22:24:14 +0300
commitf6731485a51978ca0931c787fcb8a0bc4dcc9303 (patch)
tree9803f21b4b14872a91a3d903c6dce522b9545180 /drivers/tty/serial/Kconfig
parent1598e38c0770b08c4d6371b670f9ee61a42ec68b (diff)
downloadlinux-f6731485a51978ca0931c787fcb8a0bc4dcc9303.tar.xz
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 <geert+renesas@glider.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/Kconfig')
-rw-r--r--drivers/tty/serial/Kconfig6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
index b788fee54249..bd96046d7f94 100644
--- a/drivers/tty/serial/Kconfig
+++ b/drivers/tty/serial/Kconfig
@@ -761,9 +761,11 @@ config SERIAL_SH_SCI
select SERIAL_MCTRL_GPIO if GPIOLIB
config SERIAL_SH_SCI_NR_UARTS
- int "Maximum number of SCI(F) serial ports"
+ int "Maximum number of SCI(F) serial ports" if EXPERT
depends on SERIAL_SH_SCI
- default "2"
+ default "3" if H8300
+ default "10" if SUPERH
+ default "18" if ARCH_RENESAS
config SERIAL_SH_SCI_CONSOLE
bool "Support for console on SuperH SCI(F)"