diff options
author | Simon Glass <sjg@chromium.org> | 2018-10-01 12:22:20 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-10-09 04:40:27 -0600 |
commit | aa0ffe8eb919c85997884d4d3d44a81f92a8ab66 (patch) | |
tree | d193f25cae0670f87c5d524afa96c186bb8444df /drivers/serial/Kconfig | |
parent | 6307896c177e3afb54a42439062dce0776d31891 (diff) | |
download | u-boot-aa0ffe8eb919c85997884d4d3d44a81f92a8ab66.zip u-boot-aa0ffe8eb919c85997884d4d3d44a81f92a8ab66.tar.gz u-boot-aa0ffe8eb919c85997884d4d3d44a81f92a8ab66.tar.bz2 |
serial: Allow serial to be absent in TPL
At present this option applies to SPL, but it should be available in TPL
also, and separately. Change to using CONFIG_IS_ENABLED(), add a new
Kconfig option and fix up hang().
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/serial/Kconfig')
-rw-r--r-- | drivers/serial/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 83f8c94..597db4b 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -53,6 +53,16 @@ config SPL_SERIAL_PRESENT This option enables the full UART in SPL, so if is it disabled, the full UART driver will be omitted, thus saving space. +config TPL_SERIAL_PRESENT + bool "Provide a serial driver in TPL" + depends on DM_SERIAL + default y + help + In very space-constrained devices even the full UART driver is too + large. In this case the debug UART can still be used in some cases. + This option enables the full UART in TPL, so if is it disabled, + the full UART driver will be omitted, thus saving space. + # Logic to allow us to use the imply keyword to set what the default port # should be. The default is otherwise 1. config CONS_INDEX_0 |