mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
debug_uart: Add an option to announce the debug UART
It is useful to see a message from the debug UART early during boot so that you know things are working. Add an option to enable this. The message will be displayed as soon as debug_uart_init() is called. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
0e977bc145
commit
c7fefcb912
2 changed files with 17 additions and 0 deletions
|
@ -105,6 +105,12 @@ void printhex4(uint value);
|
|||
*/
|
||||
void printhex8(uint value);
|
||||
|
||||
#ifdef CONFIG_DEBUG_UART_ANNOUNCE
|
||||
#define _DEBUG_UART_ANNOUNCE printascii("<debug_uart> ");
|
||||
#else
|
||||
#define _DEBUG_UART_ANNOUNCE
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Now define some functions - this should be inserted into the serial driver
|
||||
*/
|
||||
|
@ -151,6 +157,7 @@ void printhex8(uint value);
|
|||
{ \
|
||||
board_debug_uart_init(); \
|
||||
_debug_uart_init(); \
|
||||
_DEBUG_UART_ANNOUNCE \
|
||||
} \
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue