From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Thu, 17 Dec 2015 14:51:22 +0100 Subject: [U-Boot] [PATCH v2 2/3] serial: uartlite: Add support for debug console In-Reply-To: <5672B8D4.3030505@wytron.com.tw> References: <8440ca6c28112e04dddd3e90ffb8d8bbd425416f.1450353650.git.michal.simek@xilinx.com> <5672B8D4.3030505@wytron.com.tw> Message-ID: <5672BDDA.3060704@xilinx.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 17.12.2015 14:29, Thomas Chou wrote: > Hi Michal, > > On 2015?12?17? 20:00, Michal Simek wrote: >> Add support for debug console. >> >> Signed-off-by: Michal Simek >> --- >> >> Changes in v2: >> - Add needed header from the first patch >> - Remove WATCHDOG_RESET call >> - Extend commit description >> >> drivers/serial/Kconfig | 7 +++++++ >> drivers/serial/serial_xuartlite.c | 26 ++++++++++++++++++++++++++ >> 2 files changed, 33 insertions(+) >> >> diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig >> index 1fc287ee98ec..f1e221799b81 100644 >> --- a/drivers/serial/Kconfig >> +++ b/drivers/serial/Kconfig >> @@ -92,6 +92,13 @@ 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_UARTLITE >> + bool "Xilinx Uartlite" >> + help >> + Select this to enable a debug UART using the serial_uartlite >> driver. >> + 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_ZYNQ >> bool "Xilinx Zynq" >> help >> diff --git a/drivers/serial/serial_xuartlite.c >> b/drivers/serial/serial_xuartlite.c >> index 8225d9a320a5..f42b11eae102 100644 >> --- a/drivers/serial/serial_xuartlite.c >> +++ b/drivers/serial/serial_xuartlite.c >> @@ -114,3 +114,29 @@ U_BOOT_DRIVER(serial_uartlite) = { >> .ops = &uartlite_serial_ops, >> .flags = DM_FLAG_PRE_RELOC, >> }; >> + >> +#ifdef CONFIG_DEBUG_UART_UARTLITE >> + >> +#include >> + >> +void _debug_uart_init(void) > > Still missing, static inline > > Otherwise, > Reviewed-by: Thomas Chou I have sent separate patch for it and keep it here unchanged that's why it is not here. I can send you like if you like but I think you will find it out. Thanks, Michal