summaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-08-08 21:20:13 +0300
committerTom Rini <trini@konsulko.com>2021-09-04 19:26:02 +0300
commit52510486c59bf3a2dd91d636045af73da562a90b (patch)
tree8ea71e57cd695b98573abc919fbd2dbd586b6e00 /drivers/serial
parent2a736066687168f17a5a92c3b08d16bafc464954 (diff)
downloadu-boot-52510486c59bf3a2dd91d636045af73da562a90b.tar.xz
serial: Add a SERIAL config
At present we have SPL_SERIAL and TPL_SERIAL but not piain SERIAL. This works because there is a special build rule in Makefile that always includes the drivers/serial directory. It is better to have all driver directories included by drivers/Makefile and there is already a rule in there for this purpose. It just needs a Kconfig for U-Boot proper, so add one. It is always enabled, for now, since that mimics the current behaviour. It should be possible to drop the strange 'SERIAL_PRESENT' option at some point and use SERIAL instead. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/Kconfig15
1 files changed, 13 insertions, 2 deletions
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index c972408826..36ee43210a 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -2,7 +2,18 @@
# Serial device configuration
#
-menu "Serial drivers"
+menuconfig SERIAL
+ bool "Serial"
+ default y
+ help
+ Enable support for serial drivers. This allows use of a serial UART
+ for displaying messages while U-Boot is running. It also brings in
+ printf() and panic() functions. This should normally be enabled
+ unless there are space reasons not to. If you just need to disable
+ the console you can adjust the stdout environment variable or use
+ SILENT_CONSOLE.
+
+if SERIAL
config BAUDRATE
int "Default baudrate"
@@ -937,4 +948,4 @@ config SYS_SDMR
depends on MPC8XX_CONS
default 0
-endmenu
+endif