summaryrefslogtreecommitdiff
path: root/include/configs/ml401.h
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2008-03-28 12:13:03 +0100
committerMichal Simek <monstr@monstr.eu>2008-04-08 15:38:14 +0200
commitaf7ae1a411c67ee9d17a66d17ce50b374f3dd4e7 (patch)
tree56866a37220e01a2fc5b2e3f6c019b01b3c78991 /include/configs/ml401.h
parent0b20f250877441460fb79d72192954abe8498834 (diff)
downloadu-boot-imx-af7ae1a411c67ee9d17a66d17ce50b374f3dd4e7.zip
u-boot-imx-af7ae1a411c67ee9d17a66d17ce50b374f3dd4e7.tar.gz
u-boot-imx-af7ae1a411c67ee9d17a66d17ce50b374f3dd4e7.tar.bz2
microblaze: clean uart16550 and uartlite handling
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'include/configs/ml401.h')
-rw-r--r--include/configs/ml401.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/include/configs/ml401.h b/include/configs/ml401.h
index 6db1c1a..1a2cb0a 100644
--- a/include/configs/ml401.h
+++ b/include/configs/ml401.h
@@ -32,10 +32,23 @@
#define CONFIG_ML401 1 /* ML401 Board */
/* uart */
+#ifdef XILINX_UARTLITE_BASEADDR
#define CONFIG_XILINX_UARTLITE
-#define CONFIG_SERIAL_BASE XILINX_UART_BASEADDR
-#define CONFIG_BAUDRATE XILINX_UART_BAUDRATE
+#define CONFIG_SERIAL_BASE XILINX_UARTLITE_BASEADDR
+#define CONFIG_BAUDRATE XILINX_UARTLITE_BAUDRATE
#define CFG_BAUDRATE_TABLE { CONFIG_BAUDRATE }
+#else
+#ifdef XILINX_UART16550_BASEADDR
+#define CFG_NS16550
+#define CFG_NS16550_SERIAL
+#define CFG_NS16550_REG_SIZE 4
+#define CONFIG_CONS_INDEX 1
+#define CFG_NS16550_COM1 XILINX_UART16550_BASEADDR
+#define CFG_NS16550_CLK XILINX_UART16550_CLOCK_HZ
+#define CONFIG_BAUDRATE 115200
+#define CFG_BAUDRATE_TABLE { 9600, 115200 }
+#endif
+#endif
/* setting reset address */
/*#define CFG_RESET_ADDRESS TEXT_BASE*/