[U-Boot] [PATCH v4] Add board_pre_console_putc to deal with early console output

Graeme Russ graeme.russ at gmail.com
Wed Oct 19 01:50:46 CEST 2011


Hi Simon,

On Wed, Oct 19, 2011 at 10:43 AM, Simon Glass <sjg at chromium.org> wrote:
> This patch adds support for console output before the console is inited.
> The main purpose of this is to deal with a very early panic() which would
> otherwise cause a silent hang.
>
> A new board_pre_console_putc() function is added to the board API. If
> provided by the board it will be called in the event of console output
> before the console is ready. This function should turn on all UARTs and
> spray the character out if it possibly can.
>
> The feature is controlled by a new CONFIG_PRE_CONSOLE_PUTC option.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>

Acked-by: Graeme Russ <graeme.russ at gmail.com>


More information about the U-Boot mailing list