]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
microblaze: Move baudrate setting out driver selection
authorMichal Simek <michal.simek@xilinx.com>
Wed, 9 Dec 2015 11:42:16 +0000 (12:42 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 27 Jan 2016 14:55:49 +0000 (15:55 +0100)
Preparation of moving to DM. Uartlite ignores baudrate setting.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/configs/microblaze-generic.h

index 64248a8c6182f649563e5b5d45b01bdd3e28ee50..10ac8328b8ff8071e8f43ab802b70b05c820cc37 100644 (file)
 #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__)
 # 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