summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2015-12-09 12:42:16 +0100
committerMichal Simek <michal.simek@xilinx.com>2016-01-27 15:55:49 +0100
commit67659e2e94b6f8d3d1352a14c9262d79a1200252 (patch)
treea51cc07ce183203c999e8c6ad28b40d39a442a5e /include/configs
parent1cc174d40f975203fa59dad7ef76da9662d18643 (diff)
downloadu-boot-imx-67659e2e94b6f8d3d1352a14c9262d79a1200252.zip
u-boot-imx-67659e2e94b6f8d3d1352a14c9262d79a1200252.tar.gz
u-boot-imx-67659e2e94b6f8d3d1352a14c9262d79a1200252.tar.bz2
microblaze: Move baudrate setting out driver selection
Preparation of moving to DM. Uartlite ignores baudrate setting. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/microblaze-generic.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
index 64248a8..10ac832 100644
--- a/include/configs/microblaze-generic.h
+++ b/include/configs/microblaze-generic.h
@@ -32,11 +32,14 @@
#endif
/* uart */
+# define CONFIG_BAUDRATE 115200
+/* The following table includes the supported baudrates */
+# define CONFIG_SYS_BAUDRATE_TABLE \
+ {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
+
#ifdef XILINX_UARTLITE_BASEADDR
# define CONFIG_XILINX_UARTLITE
# define CONFIG_SERIAL_BASE XILINX_UARTLITE_BASEADDR
-# define CONFIG_BAUDRATE XILINX_UARTLITE_BAUDRATE
-# define CONFIG_SYS_BAUDRATE_TABLE { CONFIG_BAUDRATE }
#elif XILINX_UART16550_BASEADDR
# define CONFIG_SYS_NS16550_SERIAL
# if defined(__MICROBLAZEEL__)
@@ -48,11 +51,6 @@
# define CONFIG_SYS_NS16550_COM1 \
((XILINX_UART16550_BASEADDR & ~0xF) + 0x1000)
# define CONFIG_SYS_NS16550_CLK XILINX_UART16550_CLOCK_HZ
-# define CONFIG_BAUDRATE 115200
-
-/* 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