diff mbox

[U-Boot,v2,2/2] arm: serial: Add Kconfig entries to facilitate usage of the pl01x driver for early debug output

Message ID 1441827340-23490-3-git-send-email-s.temerkhanov@gmail.com
State Superseded
Delegated to: Tom Rini
Headers show

Commit Message

Sergey Temerkhanov Sept. 9, 2015, 7:35 p.m. UTC
This patch adds Kconfig entries to facilitate usage of pl01x as
a debug UART.

Signed-off-by: Sergey Temerkhanov <s.temerkhanov@gmail.com>
Signed-off-by: Radha Mohan Chintakuntla <rchintakuntla@cavium.com>

---

Changes in v2:
- Broke down into 2 patches
- Made CONFIG_DEBUG_UART_PL010 and CONFIG_DEBUG_UART_PL011
  separate options
- Typo fixes

 drivers/serial/Kconfig | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

Comments

Simon Glass Sept. 10, 2015, 2:45 a.m. UTC | #1
On 9 September 2015 at 13:35, Sergey Temerkhanov
<s.temerkhanov@gmail.com> wrote:
> This patch adds Kconfig entries to facilitate usage of pl01x as
> a debug UART.
>
> Signed-off-by: Sergey Temerkhanov <s.temerkhanov@gmail.com>
> Signed-off-by: Radha Mohan Chintakuntla <rchintakuntla@cavium.com>
>
> ---
>
> Changes in v2:
> - Broke down into 2 patches
> - Made CONFIG_DEBUG_UART_PL010 and CONFIG_DEBUG_UART_PL011
>   separate options
> - Typo fixes
>
>  drivers/serial/Kconfig | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)

Acked-by: Simon Glass <sjg@chromium.org>
diff mbox

Patch

diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index ccb80d2..539783b 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -77,6 +77,22 @@  config DEBUG_UART_S5P
 	  will need to provide parameters to make this work. The driver will
 	  be available until the real driver-model serial is running.
 
+config DEBUG_UART_PL010
+	bool "pl010"
+	help
+	  Select this to enable a debug UART using the pl01x driver with the
+	  PL010 UART type. You will need to provide parameters to make this
+	  work. The driver will be available until the real driver model
+	  serial is running.
+
+config DEBUG_UART_PL011
+	bool "pl011"
+	help
+	  Select this to enable a debug UART using the pl01x driver with the
+	  PL011 UART type. You will need to provide parameters to make this
+	  work. The driver will be available until the real driver model
+	  serial is running.
+
 endchoice
 
 config DEBUG_UART_BASE
@@ -109,6 +125,12 @@  config DEBUG_UART_SHIFT
 	  value. Use this value to specify the shift to use, where 0=byte
 	  registers, 2=32-bit word registers, etc.
 
+config DEBUG_UART_SKIP_INIT
+	bool "Skip UART initialization"
+	help
+	  Select this if the UART you want to use for debug output is already
+	  initialized by the time U-Boot starts its execution.
+
 config ROCKCHIP_SERIAL
 	bool "Rockchip on-chip UART support"
 	depends on ARCH_UNIPHIER && DM_SERIAL