diff options
author | Michal Simek <monstr@monstr.eu> | 2007-08-05 16:13:31 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2007-08-05 16:13:31 +0200 |
commit | af8377d4eb3a0ac5a831830d5ce63fbf65fecb7f (patch) | |
tree | d6ae6000229fb04f50dcfec1efd79b67eb03b425 | |
parent | 98889edd50aadf862071eb5664747ad0d568a20e (diff) | |
download | u-boot-imx-af8377d4eb3a0ac5a831830d5ce63fbf65fecb7f.zip u-boot-imx-af8377d4eb3a0ac5a831830d5ce63fbf65fecb7f.tar.gz u-boot-imx-af8377d4eb3a0ac5a831830d5ce63fbf65fecb7f.tar.bz2 |
[FIX] Xilinx Uartlite driver
Because PPC405 can use UARTLITE serial interface and
Microblaze can use Uart16550 serial interface not only Uartlite.
-rw-r--r-- | drivers/serial_xuartlite.c | 2 | ||||
-rw-r--r-- | include/configs/ml401.h | 1 | ||||
-rw-r--r-- | include/configs/suzaku.h | 1 | ||||
-rw-r--r-- | include/configs/xupv2p.h | 1 |
4 files changed, 4 insertions, 1 deletions
diff --git a/drivers/serial_xuartlite.c b/drivers/serial_xuartlite.c index ed59abe..1f3aaae 100644 --- a/drivers/serial_xuartlite.c +++ b/drivers/serial_xuartlite.c @@ -24,7 +24,7 @@ #include <config.h> -#ifdef CONFIG_MICROBLAZE +#ifdef XILINX_UARTLITE #include <asm/serial_xuartlite.h> diff --git a/include/configs/ml401.h b/include/configs/ml401.h index 3db2877..a602652 100644 --- a/include/configs/ml401.h +++ b/include/configs/ml401.h @@ -32,6 +32,7 @@ #define CONFIG_ML401 1 /* ML401 Board */ /* uart */ +#define XILINX_UARTLITE #define CONFIG_SERIAL_BASE XILINX_UART_BASEADDR #define CONFIG_BAUDRATE XILINX_UART_BAUDRATE #define CFG_BAUDRATE_TABLE { CONFIG_BAUDRATE } diff --git a/include/configs/suzaku.h b/include/configs/suzaku.h index ca5c751..9661726 100644 --- a/include/configs/suzaku.h +++ b/include/configs/suzaku.h @@ -48,6 +48,7 @@ #define CFG_MALLOC_LEN (256 << 10) /* Reserve 256 kB for malloc */ #define CFG_MALLOC_BASE (CFG_MONITOR_BASE - (1024 * 1024)) +#define XILINX_UARTLITE #define CONFIG_BAUDRATE 115200 #define CFG_BAUDRATE_TABLE { 115200 } diff --git a/include/configs/xupv2p.h b/include/configs/xupv2p.h index 25fa495..bac31f4 100644 --- a/include/configs/xupv2p.h +++ b/include/configs/xupv2p.h @@ -32,6 +32,7 @@ /* uart */ #ifdef XILINX_UARTLITE_BASEADDR +#define XILINX_UARTLITE #define CONFIG_SERIAL_BASE XILINX_UARTLITE_BASEADDR #define CONFIG_BAUDRATE XILINX_UARTLITE_BAUDRATE #define CFG_BAUDRATE_TABLE { CONFIG_BAUDRATE } |