diff options
author | Michal Simek <michal.simek@xilinx.com> | 2018-04-19 12:36:48 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2018-05-11 09:23:43 +0200 |
commit | 57213c5f3711254934736637b59989c9b7ba7f2b (patch) | |
tree | 2adbfddcaf58360a1a4adf5b99876c7fdb9839d9 /arch/arm/mach-zynq/spl.c | |
parent | da342f06b30399fbbebbb53aadfc018713c65c24 (diff) |
arm: zynq: Enable debug_uart_init in spl when enabled
In past this code was commented and was used for debug purpose.
But there is no reason not to enabled it based on macros.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/mach-zynq/spl.c')
-rw-r--r-- | arch/arm/mach-zynq/spl.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/mach-zynq/spl.c b/arch/arm/mach-zynq/spl.c index 48e3d8d57f..83297d6c69 100644 --- a/arch/arm/mach-zynq/spl.c +++ b/arch/arm/mach-zynq/spl.c @@ -17,11 +17,12 @@ void board_init_f(ulong dummy) ps7_init(); arch_cpu_init(); - /* - * The debug UART can be used from this point: - * debug_uart_init(); - * printch('x'); - */ + +#ifdef CONFIG_DEBUG_UART + /* Uart debug for sure */ + debug_uart_init(); + puts("Debug uart enabled\n"); /* or printch() */ +#endif } #ifdef CONFIG_SPL_BOARD_INIT |