diff options
| author | Tom Rini <[email protected]> | 2025-06-08 09:24:08 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-06-08 09:24:08 -0600 |
| commit | a854c12062c4ae4765c85a5496c21f3d789db082 (patch) | |
| tree | 0e90c37c26aeab919b300430b66f88e150657bc9 /include/debug_uart.h | |
| parent | 5a8dd2e0c848135b5c96af291aa96e79acc923ec (diff) | |
| parent | b8101af3ce56a547f373d273d9ea37aefb74dc5a (diff) | |
Merge tag 'u-boot-rockchip-20250606' of https://source.denx.de/u-boot/custodians/u-boot-rockchip
CI: https://source.denx.de/u-boot/custodians/u-boot-rockchip/-/pipelines/26117
- Allow to silent TPL/SPL debug console;
- enable exFAT support for Theobroma boards;
- Fix SD power initialization in SPL for rk3399-nanopi4
Diffstat (limited to 'include/debug_uart.h')
| -rw-r--r-- | include/debug_uart.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/debug_uart.h b/include/debug_uart.h index 714b369e6fe..d5e397d5e0a 100644 --- a/include/debug_uart.h +++ b/include/debug_uart.h @@ -128,6 +128,8 @@ void printdec(unsigned int value); (1 << CONFIG_DEBUG_UART_SHIFT), \ CONFIG_DEBUG_UART_SHIFT) +#ifdef CONFIG_DEBUG_UART + /* * Now define some functions - this should be inserted into the serial driver */ @@ -197,4 +199,22 @@ void printdec(unsigned int value); _DEBUG_UART_ANNOUNCE \ } \ +#else + +#define DEBUG_UART_FUNCS + +#define _printch(ch) (void)(ch) +#define printhex1(digit) (void)(digit) +#define printhex(value, digits) do { (void)(value); (void)(digits); } while(0) + +#define printch(ch) (void)(ch) +#define printascii(str) (void)(str) +#define printhex2(value) (void)(value) +#define printhex4(value) (void)(value) +#define printhex8(value) (void)(value) +#define printdec(value) (void)(value) +#define debug_uart_init() ((void)0) + +#endif + #endif |
