]> git.ipfire.org Git - people/ms/u-boot.git/commit
Add board_pre_console_putc to deal with early console output
authorSimon Glass <sjg@chromium.org>
Tue, 18 Oct 2011 13:43:20 +0000 (13:43 +0000)
committerStefano Babic <sbabic@denx.de>
Fri, 9 Dec 2011 13:44:22 +0000 (14:44 +0100)
commit295d3942b806552503243f5cfb36aec6f1b5a9bf
tree3af9bc15401300eeaede2b4bc52afe21a6ae23da
parentc4eba6ec5c58083b38340724c006294c7a4fe2eb
Add board_pre_console_putc to deal with early console output

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@chromium.org>
Acked-by: Graeme Russ <graeme.russ@gmail.com>
README
common/console.c
include/common.h