Patchwork [U-Boot,2/7] serial_mxc: add support for Freescale's i.MX35 processor

login
register
mail settings
Submitter Stefano Babic
Date Jan. 14, 2011, 1:35 p.m.
Message ID <1295012124-15551-2-git-send-email-sbabic@denx.de>
Download mbox | patch
Permalink /patch/78902/
State Superseded
Delegated to: Stefano Babic
Headers show

Comments

Stefano Babic - Jan. 14, 2011, 1:35 p.m.
The patch adds UART support for the i.MX35 processor.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 drivers/serial/serial_mxc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Wolfgang Denk - Jan. 19, 2011, 7:19 a.m.
Dear Stefano Babic,

In message <1295012124-15551-2-git-send-email-sbabic@denx.de> you wrote:
> The patch adds UART support for the i.MX35 processor.
> 
> Signed-off-by: Stefano Babic <sbabic@denx.de>
> ---
>  drivers/serial/serial_mxc.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c
> index f96b21f..2dcae40 100644
> --- a/drivers/serial/serial_mxc.c
> +++ b/drivers/serial/serial_mxc.c
> @@ -50,9 +50,9 @@
>  #define UART_PHYS 0x1001b000
>  #elif defined(CONFIG_SYS_MX27_UART6)
>  #define UART_PHYS 0x1001c000
> -#elif defined(CONFIG_SYS_MX51_UART1)
> +#elif defined(CONFIG_SYS_MX51_UART1) || defined(CONFIG_SYS_MX35_UART1)
>  #define UART_PHYS UART1_BASE_ADDR
> -#elif defined(CONFIG_SYS_MX51_UART2)
> +#elif defined(CONFIG_SYS_MX51_UART2) || defined(CONFIG_SYS_MX35_UART2)

Please sort entries - CONFIG_SYS_MX35_UART2 goes before
CONFIG_SYS_MX51_UART2.

Best regards,

Wolfgang Denk

Patch

diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c
index f96b21f..2dcae40 100644
--- a/drivers/serial/serial_mxc.c
+++ b/drivers/serial/serial_mxc.c
@@ -50,9 +50,9 @@ 
 #define UART_PHYS 0x1001b000
 #elif defined(CONFIG_SYS_MX27_UART6)
 #define UART_PHYS 0x1001c000
-#elif defined(CONFIG_SYS_MX51_UART1)
+#elif defined(CONFIG_SYS_MX51_UART1) || defined(CONFIG_SYS_MX35_UART1)
 #define UART_PHYS UART1_BASE_ADDR
-#elif defined(CONFIG_SYS_MX51_UART2)
+#elif defined(CONFIG_SYS_MX51_UART2) || defined(CONFIG_SYS_MX35_UART2)
 #define UART_PHYS UART2_BASE_ADDR
 #elif defined(CONFIG_SYS_MX51_UART3)
 #define UART_PHYS UART3_BASE_ADDR