[U-Boot] [PATCH 07/13] log: Add a console driver

Simon Glass sjg at chromium.org
Tue Sep 26 19:10:16 UTC 2017


Hi Bin,

On 17 September 2017 at 23:45, Bin Meng <bmeng.cn at gmail.com> wrote:
> On Sun, Sep 17, 2017 at 5:23 AM, Simon Glass <sjg at chromium.org> wrote:
>> It is useful to display log messages on the console. Add a simple driver
>> to handle this.
>>
>> Signed-off-by: Simon Glass <sjg at chromium.org>
>> ---
>>
>>  common/Kconfig       | 20 ++++++++++++++++++++
>>  common/Makefile      |  1 +
>>  common/log_console.c | 23 +++++++++++++++++++++++
>>  3 files changed, 44 insertions(+)
>>  create mode 100644 common/log_console.c
>>
>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
>
> But isn't it possible to get this stuff into the serial-uclass driver?

It could do but then it would not be the console. The console is
controlled by stdout and might be set to output to an LCD, or perhaps
both LCD and serial.

Regards,
Simon


More information about the U-Boot mailing list