Patchwork [U-Boot,v4,3/8] serial_mxc: add support for MX53 processor

login
register
mail settings
Submitter Liu Hui-R64343
Date Jan. 4, 2011, 8:27 a.m.
Message ID <1294129662-680-3-git-send-email-r64343@freescale.com>
Download mbox | patch
Permalink /patch/77396/
State Accepted
Delegated to: Stefano Babic
Headers show

Comments

Liu Hui-R64343 - Jan. 4, 2011, 8:27 a.m.
This patch add UART support for Freescale MX53 processor

Signed-off-by: Jason Liu <r64343@freescale.com>
---
 drivers/serial/serial_mxc.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
Stefano Babic - Jan. 12, 2011, 9:46 a.m.
On 01/04/2011 09:27 AM, Jason Liu wrote:
> This patch add UART support for Freescale MX53 processor
> 
> Signed-off-by: Jason Liu <r64343@freescale.com>
> ---
>  drivers/serial/serial_mxc.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Patch

diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c
index f96b21f..805f4c5 100644
--- a/drivers/serial/serial_mxc.c
+++ b/drivers/serial/serial_mxc.c
@@ -56,6 +56,12 @@ 
 #define UART_PHYS UART2_BASE_ADDR
 #elif defined(CONFIG_SYS_MX51_UART3)
 #define UART_PHYS UART3_BASE_ADDR
+#elif defined(CONFIG_SYS_MX53_UART1)
+#define UART_PHYS UART1_BASE_ADDR
+#elif defined(CONFIG_SYS_MX53_UART2)
+#define UART_PHYS UART2_BASE_ADDR
+#elif defined(CONFIG_SYS_MX53_UART3)
+#define UART_PHYS UART3_BASE_ADDR
 #else
 #error "define CONFIG_SYS_MXxx_UARTx to use the MXC UART driver"
 #endif