diff options
author | Terry Lv <r65388@freescale.com> | 2010-09-05 18:27:46 +0800 |
---|---|---|
committer | Terry Lv <r65388@freescale.com> | 2010-09-19 23:25:21 +0800 |
commit | 6537dffd192344d8c786a037bce9f41db5448fc9 (patch) | |
tree | 0500e0c88f7b0c9c6675d14fad3563267b419936 /drivers/serial | |
parent | 1e981afa607f3e04691fa8f05dc7c37070702845 (diff) | |
download | u-boot-imx-6537dffd192344d8c786a037bce9f41db5448fc9.zip u-boot-imx-6537dffd192344d8c786a037bce9f41db5448fc9.tar.gz u-boot-imx-6537dffd192344d8c786a037bce9f41db5448fc9.tar.bz2 |
ENGR00127167: Add gpmi nfc and apbh dma support for mx50.
Add gpmi nfc and apbh dma support for mx50.
Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/serial_mxc.c | 40 |
1 files changed, 5 insertions, 35 deletions
diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c index acc5b7d..f840bcd 100644 --- a/drivers/serial/serial_mxc.c +++ b/drivers/serial/serial_mxc.c @@ -18,39 +18,13 @@ */ #include <common.h> -#ifdef CONFIG_MX31 -#include <asm/arch/mx31.h> -#else -#include <asm/arch/imx-regs.h> -#include <asm/arch/clock.h> -#endif #define __REG(x) (*((volatile u32 *)(x))) -#ifdef CONFIG_SYS_MX31_UART1 -#define UART_PHYS 0x43f90000 -#elif defined(CONFIG_SYS_MX31_UART2) -#define UART_PHYS 0x43f94000 -#elif defined(CONFIG_SYS_MX31_UART3) -#define UART_PHYS 0x5000c000 -#elif defined(CONFIG_SYS_MX31_UART4) -#define UART_PHYS 0x43fb0000 -#elif defined(CONFIG_SYS_MX31_UART5) -#define UART_PHYS 0x43fb4000 -#elif defined(CONFIG_SYS_MX27_UART1) -#define UART_PHYS 0x1000a000 -#elif defined(CONFIG_SYS_MX27_UART2) -#define UART_PHYS 0x1000b000 -#elif defined(CONFIG_SYS_MX27_UART3) -#define UART_PHYS 0x1000c000 -#elif defined(CONFIG_SYS_MX27_UART4) -#define UART_PHYS 0x1000d000 -#elif defined(CONFIG_SYS_MX27_UART5) -#define UART_PHYS 0x1001b000 -#elif defined(CONFIG_SYS_MX27_UART6) -#define UART_PHYS 0x1001c000 -#else -#error "define CONFIG_SYS_MX31_UARTx to use the mx31 UART driver" +#define UART_PHYS CONFIG_UART_BASE_ADDR + +#ifdef CONFIG_SERIAL_MULTI +#warning "MXC driver does not support MULTI serials." #endif /* Register definitions */ @@ -166,11 +140,7 @@ DECLARE_GLOBAL_DATA_PTR; void serial_setbrg (void) { -#ifdef CONFIG_MX31 - u32 clk = mx31_get_ipg_clk(); -#else - u32 clk = imx_get_perclk1(); -#endif + u32 clk = mxc_get_clock(MXC_UART_CLK); if (!gd->baudrate) gd->baudrate = CONFIG_BAUDRATE; |