Re: [U-Boot] [PATCH 18/19] serial: ns16550: Support debug UART

2014-12-16 Thread Simon Glass
Hi Masahiro, On 15 December 2014 at 21:39, Masahiro Yamada wrote: > Hi Simon, > > > On Mon, 15 Dec 2014 07:19:53 -0700 > Simon Glass wrote: > >> +#ifdef CONFIG_DEBUG_UART_NS16550 >> +void debug_uart_init(void) >> +{ >> + struct NS16550 *com_port = (struct NS16550 *)CONFIG_DEBUG_UART_BASE; >>

Re: [U-Boot] [PATCH 18/19] serial: ns16550: Support debug UART

2014-12-15 Thread Masahiro Yamada
Hi Simon, On Mon, 15 Dec 2014 07:19:53 -0700 Simon Glass wrote: > +#ifdef CONFIG_DEBUG_UART_NS16550 > +void debug_uart_init(void) > +{ > + struct NS16550 *com_port = (struct NS16550 *)CONFIG_DEBUG_UART_BASE; > + int baud_divisor; > + > + baud_divisor = calc_divisor(com_port, CONFIG_

[U-Boot] [PATCH 18/19] serial: ns16550: Support debug UART

2014-12-15 Thread Simon Glass
Add debug UART functions to permit ns16550 to provide an early debug UART. Try to avoid using the stack so that this can be called from assembler before a stack is set up (at least on ARM and PowerPC). Signed-off-by: Simon Glass --- drivers/serial/Kconfig | 13 + drivers/serial/ns