diff options
author | Michal Simek <monstr@monstr.eu> | 2008-11-24 11:43:00 +0100 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2008-12-10 09:25:33 +0100 |
commit | e7d591e823a991513833af7030468409e25a3b13 (patch) | |
tree | 3aa2a83dc370a2f8797d2876a952c356eefe1959 | |
parent | c85ff0553a8cfbcca51c15b947e1ed55d3810a39 (diff) | |
download | bootable_bootloader_goldelico_gta04-e7d591e823a991513833af7030468409e25a3b13.zip bootable_bootloader_goldelico_gta04-e7d591e823a991513833af7030468409e25a3b13.tar.gz bootable_bootloader_goldelico_gta04-e7d591e823a991513833af7030468409e25a3b13.tar.bz2 |
microblaze: Fix ml401 uart16550 setting
Signed-off-by: Michal Simek <monstr@monstr.eu>
-rw-r--r-- | include/configs/ml401.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/include/configs/ml401.h b/include/configs/ml401.h index 63d07ff..b31c4b5 100644 --- a/include/configs/ml401.h +++ b/include/configs/ml401.h @@ -37,17 +37,20 @@ #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 */ |