From: Geert Uytterhoeven <geert+renesas@glider.be>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Simon Horman <horms@verge.net.au>,
Magnus Damm <magnus.damm@gmail.com>,
Yoshinori Sato <ysato@users.sourceforge.jp>,
Rich Felker <dalias@libc.org>
Cc: Jiri Slaby <jslaby@suse.com>,
linux-serial@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
uclinux-h8-devel@lists.sourceforge.jp, linux-sh@vger.kernel.org,
Geert Uytterhoeven <geert+renesas@glider.be>
Subject: [PATCH 1/5] tty: serial: sh-sci: Hide number of ports config question
Date: Thu, 30 Nov 2017 13:11:58 +0000 [thread overview]
Message-ID: <1512047522-16312-2-git-send-email-geert+renesas@glider.be> (raw)
In-Reply-To: <1512047522-16312-1-git-send-email-geert+renesas@glider.be>
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>
---
drivers/tty/serial/Kconfig | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
index b788fee54249deff..bd96046d7f94bac0 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)"
--
2.7.4
next prev parent reply other threads:[~2017-11-30 13:11 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-30 13:11 [PATCH 0/5] tty: serial: sh-sci: Hide driver specific config questions Geert Uytterhoeven
2017-11-30 13:11 ` Geert Uytterhoeven [this message]
2017-11-30 13:11 ` [PATCH 2/5] tty: serial: sh-sci: Hide serial console config question Geert Uytterhoeven
2017-11-30 13:12 ` [PATCH 3/5] tty: serial: sh-sci: Hide earlycon " Geert Uytterhoeven
2018-04-15 0:34 ` Rich Felker
2018-04-15 18:58 ` Geert Uytterhoeven
2018-04-15 19:09 ` Rich Felker
2018-05-02 2:32 ` Rob Herring
2018-05-04 7:35 ` Geert Uytterhoeven
2017-11-30 13:12 ` [PATCH 4/5] tty: serial: sh-sci: Hide DMA " Geert Uytterhoeven
2017-11-30 13:12 ` [PATCH/RFC 5/5] ARM: shmobile: defconfig: Disable CONFIG_EMBEDDED Geert Uytterhoeven
2017-12-01 8:33 ` Simon Horman
2017-12-04 9:46 ` Geert Uytterhoeven
2017-12-05 8:28 ` Simon Horman
2017-12-09 2:18 ` Rob Landley
2017-12-09 8:54 ` Geert Uytterhoeven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1512047522-16312-2-git-send-email-geert+renesas@glider.be \
--to=geert+renesas@glider.be \
--cc=dalias@libc.org \
--cc=gregkh@linuxfoundation.org \
--cc=horms@verge.net.au \
--cc=jslaby@suse.com \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=uclinux-h8-devel@lists.sourceforge.jp \
--cc=ysato@users.sourceforge.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).