]> git.dujemihanovic.xyz Git - u-boot.git/commit
debug_uart: Support board-specific UART initialisation
authorSimon Glass <sjg@chromium.org>
Mon, 19 Oct 2015 01:51:24 +0000 (19:51 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Oct 2015 13:46:50 +0000 (07:46 -0600)
commit0e977bc1455699fd8a9303ee3e8fd66a3c8eaced
tree858bf46693800745dbc70f7916a8e3eb43acd18c
parent97b059730218824a1455f030aadd78ef51729ec0
debug_uart: Support board-specific UART initialisation

Some boards need to set things up before the debug UART can be used. On
these boards a call to debug_uart_init() is insufficient. When this option
is enabled, the function board_debug_uart_init() will be called when
debug_uart_init() is called. You can put any code here that is needed to
set up the UART ready for use, such as set pin multiplexing or enable
clocks.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/serial/Kconfig
include/debug_uart.h