Skip to content
Commit 295d3942 authored by Simon Glass's avatar Simon Glass Committed by Stefano Babic
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Acked-by: default avatarGraeme Russ <graeme.russ@gmail.com>
parent c4eba6ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment