mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
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>
This commit is contained in:
parent
1cc174d40f
commit
67659e2e94
1 changed files with 5 additions and 7 deletions
|
@ -32,11 +32,14 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* uart */
|
/* 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
|
#ifdef XILINX_UARTLITE_BASEADDR
|
||||||
# define CONFIG_XILINX_UARTLITE
|
# define CONFIG_XILINX_UARTLITE
|
||||||
# define CONFIG_SERIAL_BASE XILINX_UARTLITE_BASEADDR
|
# define CONFIG_SERIAL_BASE XILINX_UARTLITE_BASEADDR
|
||||||
# define CONFIG_BAUDRATE XILINX_UARTLITE_BAUDRATE
|
|
||||||
# define CONFIG_SYS_BAUDRATE_TABLE { CONFIG_BAUDRATE }
|
|
||||||
#elif XILINX_UART16550_BASEADDR
|
#elif XILINX_UART16550_BASEADDR
|
||||||
# define CONFIG_SYS_NS16550_SERIAL
|
# define CONFIG_SYS_NS16550_SERIAL
|
||||||
# if defined(__MICROBLAZEEL__)
|
# if defined(__MICROBLAZEEL__)
|
||||||
|
@ -48,11 +51,6 @@
|
||||||
# define CONFIG_SYS_NS16550_COM1 \
|
# define CONFIG_SYS_NS16550_COM1 \
|
||||||
((XILINX_UART16550_BASEADDR & ~0xF) + 0x1000)
|
((XILINX_UART16550_BASEADDR & ~0xF) + 0x1000)
|
||||||
# define CONFIG_SYS_NS16550_CLK XILINX_UART16550_CLOCK_HZ
|
# 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
|
#else
|
||||||
# error Undefined uart
|
# error Undefined uart
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue