diff mbox

[U-Boot,1/3] mxc_gpio: add support for MX53 processor

Message ID 1293024231-4897-1-git-send-email-r64343@freescale.com
State Accepted
Commit 01643ec180d975192e2a1fcf964dd3239bebc75a
Delegated to: Stefano Babic
Headers show

Commit Message

Liu Hui-R64343 Dec. 22, 2010, 1:23 p.m. UTC
This patch add mxc_gpio support for Freescale MX53 processor

Signed-off-by: Jason Liu <r64343@freescale.com>
---
 drivers/gpio/mxc_gpio.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

Comments

Stefano Babic Dec. 27, 2010, 10:26 a.m. UTC | #1
On 12/22/2010 02:23 PM, Jason Liu wrote:
> This patch add mxc_gpio support for Freescale MX53 processor
> 
> Signed-off-by: Jason Liu <r64343@freescale.com>
> ---
>  drivers/gpio/mxc_gpio.c |    9 +++++++--
>  1 files changed, 7 insertions(+), 2 deletions(-)
> 
Hi Jason,


Please move this patch in the same patchset to add support for mx53evk.

Best regards,
Stefano Babic
Jason Liu Dec. 28, 2010, 8 a.m. UTC | #2
Hi, Stefano,

2010/12/27 Stefano Babic <sbabic@denx.de>:
> On 12/22/2010 02:23 PM, Jason Liu wrote:
>> This patch add mxc_gpio support for Freescale MX53 processor
>>
>> Signed-off-by: Jason Liu <r64343@freescale.com>
>> ---
>>  drivers/gpio/mxc_gpio.c |    9 +++++++--
>>  1 files changed, 7 insertions(+), 2 deletions(-)
>>
> Hi Jason,
>
>
> Please move this patch in the same patchset to add support for mx53evk.

OK,

>
> Best regards,
> Stefano Babic
>
> --
> =====================================================================
> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office@denx.de
> =====================================================================
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
diff mbox

Patch

diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c
index 663141f..53a0673 100644
--- a/drivers/gpio/mxc_gpio.c
+++ b/drivers/gpio/mxc_gpio.c
@@ -24,7 +24,7 @@ 
 #ifdef CONFIG_MX31
 #include <asm/arch/mx31-regs.h>
 #endif
-#ifdef CONFIG_MX51
+#if defined(CONFIG_MX51) || defined(CONFIG_MX53)
 #include <asm/arch/imx-regs.h>
 #endif
 #include <asm/io.h>
@@ -35,9 +35,14 @@  static unsigned long gpio_ports[] = {
 	[0] = GPIO1_BASE_ADDR,
 	[1] = GPIO2_BASE_ADDR,
 	[2] = GPIO3_BASE_ADDR,
-#ifdef CONFIG_MX51
+#if defined(CONFIG_MX51) || defined(CONFIG_MX53)
 	[3] = GPIO4_BASE_ADDR,
 #endif
+#if defined(CONFIG_MX53)
+	[4] = GPIO5_BASE_ADDR,
+	[5] = GPIO6_BASE_ADDR,
+	[6] = GPIO7_BASE_ADDR,
+#endif
 };
 
 int mxc_gpio_direction(unsigned int gpio, enum mxc_gpio_direction direction)