summaryrefslogtreecommitdiff
path: root/drivers/serial/Kconfig
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-12-13 21:36:58 -0700
committerSimon Glass <sjg@chromium.org>2016-01-12 10:19:09 -0700
commit92c55b682cf24dc454d95149d3476dc66d514555 (patch)
tree606529151644a1ef23dd6f0a31317be4da357f56 /drivers/serial/Kconfig
parentd4f847ecd789c8b99d98a512e85406255fa192ce (diff)
downloadu-boot-imx-92c55b682cf24dc454d95149d3476dc66d514555.zip
u-boot-imx-92c55b682cf24dc454d95149d3476dc66d514555.tar.gz
u-boot-imx-92c55b682cf24dc454d95149d3476dc66d514555.tar.bz2
dm: serial: Allow the UART driver to be dropped from the image
In very 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. Add options to enable the UART driver in SPL and U-Boot proper. Enable both options by default. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Thomas Chou <thomas@wytron.com.tw>
Diffstat (limited to 'drivers/serial/Kconfig')
-rw-r--r--drivers/serial/Kconfig20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index 1fc287e..04541c9 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -15,6 +15,26 @@ config REQUIRE_SERIAL_CONSOLE
during serial port initialization (default y). Set this to n on
boards which have no debug serial port whatsoever.
+config SERIAL_PRESENT
+ bool "Provide a serial driver"
+ 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 U-Boot, so if is it disabled,
+ the full UART driver will be omitted, thus saving space.
+
+config SPL_SERIAL_PRESENT
+ bool "Provide a serial driver in SPL"
+ 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 SPL, so if is it disabled,
+ the full UART driver will be omitted, thus saving space.
+
config DM_SERIAL
bool "Enable Driver Model for serial drivers"
depends on DM