diff options
author | Simon Glass <sjg@chromium.org> | 2011-10-18 13:43:20 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2011-12-09 14:44:22 +0100 |
commit | 295d3942b806552503243f5cfb36aec6f1b5a9bf (patch) | |
tree | 3af9bc15401300eeaede2b4bc52afe21a6ae23da /README | |
parent | c4eba6ec5c58083b38340724c006294c7a4fe2eb (diff) | |
download | u-boot-295d3942b806552503243f5cfb36aec6f1b5a9bf.tar.gz |
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>
Diffstat (limited to 'README')
-rw-r--r-- | README | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -638,6 +638,23 @@ The following options need to be configured: 'Sane' compilers will generate smaller code if CONFIG_PRE_CON_BUF_SZ is a power of 2 +- Pre-console putc(): + Prior to the console being initialised, console output is + normally silently discarded. This can be annoying if a + panic() happens in this time. + + If the CONFIG_PRE_CONSOLE_PUTC option is defined, then + U-Boot will call board_pre_console_putc() for each output + character in this case, This function should try to output + the character if possible, perhaps on all available UARTs + (it will need to do this directly, since the console code + is not functional yet). Note that if the panic happens + early enough, then it is possible that board_init_f() + (or even arch_cpu_init() on ARM) has not been called yet. + You should init all clocks, GPIOs, etc. that are needed + to get the character out. Baud rates will need to default + to something sensible. + - Boot Delay: CONFIG_BOOTDELAY - in seconds Delay before automatically booting the default image; set to -1 to disable autoboot. |