]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
serial: Support an early UART for debugging
authorSimon Glass <sjg@chromium.org>
Tue, 27 Jan 2015 01:27:07 +0000 (18:27 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:53:52 +0000 (13:53 +0200)
commit1fd4c06b3e97fdf0552813eda7af6f31163ed2b0
tree8967fd54394a059ff20c83ded034c5e95b89af87
parent5bb64fe867b93436440656b7b622afde82f6849f
serial: Support an early UART for debugging

This came up in a discussion on the mailing list here:

https://patchwork.ozlabs.org/patch/384613/

My concerns at the time were:
- it doesn't need to be written in assembler
- it doesn't need to be ARM-specific

This patch provides a possible alternative. It works by allowing any serial
driver to export one init function and provide a putc() function. These
can be used to output debug data before the real serial driver is available.

This implementation does not depend on driver model, and it is possible for
it to operate without a stack on some architectures (e.g. PowerPC, ARM). It
provides the same features as the ARM-specific debug.S but with more UART
and architecture support.

Signed-off-by: Simon Glass <sjg@chromium.org>
configs/minnowmax_defconfig
drivers/serial/Kconfig
include/debug_uart.h [new file with mode: 0644]