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

Simon Glass sjg at chromium.org
Mon Nov 28 19:56:34 CET 2011


On Fri, Nov 25, 2011 at 3:53 AM, Stefano Babic <sbabic at denx.de> wrote:
> On 25/11/2011 08:35, Simon Glass wrote:
>> Hi,
>>
>> On Tue, Oct 18, 2011 at 4:50 PM, Graeme Russ <graeme.russ at gmail.com> wrote:
>>> Hi Simon,
>>>
>
> Hi Simon,
>
>>>> 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>
>>>
>> Just going through my backlog. Any interest in merging this?
>
> I have frankly missed the patch - I will read the related thread, and I
> will take a look. For now I will put this patch in my TODO list in
> patchwork.

Hi Stefano,

Thank you - no particular reason for you to notice it, but I thought I
would cc you. The original purpose was to get some sort of message out
of a board that fails very early (before console_init_f()). It is
useful when using an fdt, since if the fdt cannot be found it is nice
to print a friendly message somehow.

Regards,
Simon

>
> Best regards,
> Stefano
>
> --
> =====================================================================
> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
> =====================================================================
>


More information about the U-Boot mailing list