x86: Init the debug UART if enabled
[platform/kernel/u-boot.git] / arch / x86 / cpu / start.S
index d072825..5b4ee79 100644 (file)
@@ -126,14 +126,9 @@ car_init_ret:
        call    board_init_f_mem
        mov     %eax, %esp
 
-       /*
-        * Debug UART is available here although it may not be plumbed out
-        * to pins depending on the board. To use it:
-        *
-        * call  debug_uart_init
-        * mov   $'a', %eax
-        * call  printch
-        */
+#ifdef CONFIG_DEBUG_UART
+       call    debug_uart_init
+#endif
 
        /* Get address of global_data */
        mov     %fs:0, %edx