ml507: Fix Xilinx uartlite driver hang
authorRommel Custodio <sessyargc+uboot@gmail.com>
Mon, 24 Sep 2012 13:27:05 +0000 (13:27 +0000)
committerTom Rini <trini@ti.com>
Mon, 8 Oct 2012 18:12:07 +0000 (11:12 -0700)
The default configuration for ml507 will generate a hang() in the
Xilinx uartlite driver.

userial_ports[] in drivers/serial/serial_xuartlite.c does not get
initialized properly. CONFIG_SERIAL_BASE is unused.
XILINX_UARTLITE_BASEADDR is used instead.

Signed-off-by: Rommel Custodio <sessyargc+uboot@gmail.com>
include/configs/xilinx-ppc.h

index 1235c373e9e395bdbe3393fddaff767923f3bc02..2bdaa0560b442daa47b790c70bf9c5bacee4aa0b 100644 (file)
 /* serial communication */
 #ifdef XPAR_UARTLITE_0_BASEADDR
 #define CONFIG_XILINX_UARTLITE
-#define CONFIG_SERIAL_BASE             XPAR_UARTLITE_0_BASEADDR
+#define XILINX_UARTLITE_BASEADDR       XPAR_UARTLITE_0_BASEADDR
 #define CONFIG_BAUDRATE                        XPAR_UARTLITE_0_BAUDRATE
 #define CONFIG_SYS_BAUDRATE_TABLE      { CONFIG_BAUDRATE }
 #else