diff options
author | Simon Glass <sjg@chromium.org> | 2017-04-02 09:50:32 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-04-05 16:36:59 -0400 |
commit | 891f7ae63318293cd5807fb611f86f545080b1f6 (patch) | |
tree | 27d59064d6f953675b95b162d48c0bfb70d2cd0b /drivers/serial/Kconfig | |
parent | 5a6f06f696c9c4cf84666ac12b3b3bc3f6fcd93d (diff) |
dm: serial: Allow driver-model serial to be disabled for TPL
Add separate enable/disable controls for driver-model serial. While this
is generally enabled in SPL it may not be in TPL, since serial output can
be obtained with the debug UART with minimal code size.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/serial/Kconfig')
-rw-r--r-- | drivers/serial/Kconfig | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index ca56a7e604..0900cc8acb 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -53,6 +53,26 @@ config DM_SERIAL implements serial_putc() etc. The uclass interface is defined in include/serial.h. +config SPL_DM_SERIAL + bool "Enable Driver Model for serial drivers" + depends on DM_SERIAL + default y if SPL && DM_SERIAL + help + Enable driver model for serial in SPL. This replaces + drivers/serial/serial.c with the serial uclass, which + implements serial_putc() etc. The uclass interface is + defined in include/serial.h. + +config TPL_DM_SERIAL + bool "Enable Driver Model for serial drivers" + depends on DM_SERIAL + default y if TPL && DM_SERIAL + help + Enable driver model for serial in TPL. This replaces + drivers/serial/serial.c with the serial uclass, which + implements serial_putc() etc. The uclass interface is + defined in include/serial.h. + config DEBUG_UART bool "Enable an early debug UART for debugging" help |