]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
microblaze: Fix ml401 uart16550 setting
authorMichal Simek <monstr@monstr.eu>
Mon, 24 Nov 2008 10:43:00 +0000 (11:43 +0100)
committerMichal Simek <monstr@monstr.eu>
Wed, 10 Dec 2008 08:25:33 +0000 (09:25 +0100)
Signed-off-by: Michal Simek <monstr@monstr.eu>
include/configs/ml401.h

index 63d07ffd2eb0fe26e30e6e219c62e39d34e9d55a..b31c4b53c9b98fcd70dac1fd348c33e9ef63f0ea 100644 (file)
 #define        CONFIG_SERIAL_BASE      XILINX_UARTLITE_BASEADDR
 #define        CONFIG_BAUDRATE         XILINX_UARTLITE_BAUDRATE
 #define        CONFIG_SYS_BAUDRATE_TABLE       { CONFIG_BAUDRATE }
-#else
-#ifdef XILINX_UART16550_BASEADDR
-#define CONFIG_SYS_NS16550
+#elif XILINX_UART16550_BASEADDR
+#define CONFIG_SYS_NS16550     1
 #define CONFIG_SYS_NS16550_SERIAL
-#define CONFIG_SYS_NS16550_REG_SIZE    4
+#define CONFIG_SYS_NS16550_REG_SIZE    -4
 #define CONFIG_CONS_INDEX      1
-#define CONFIG_SYS_NS16550_COM1        XILINX_UART16550_BASEADDR
+#define CONFIG_SYS_NS16550_COM1        (XILINX_UART16550_BASEADDR + 0x1000 + 0x3)
 #define CONFIG_SYS_NS16550_CLK         XILINX_UART16550_CLOCK_HZ
 #define        CONFIG_BAUDRATE         115200
-#define        CONFIG_SYS_BAUDRATE_TABLE       { 9600, 115200 }
-#endif
+
+/* The following table includes the supported baudrates */
+#define CONFIG_SYS_BAUDRATE_TABLE  \
+       {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
+#else
+#error Undefined uart
 #endif
 
 /* setting reset address */