public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] mx6qarm2:Use IMX_GPIO_NR macro
@ 2012-08-23 16:11 Ashok
  2012-08-23 16:35 ` Fabio Estevam
  2012-08-23 16:39 ` Stefano Babic
  0 siblings, 2 replies; 3+ messages in thread
From: Ashok @ 2012-08-23 16:11 UTC (permalink / raw)
  To: u-boot

 From 0a92ab264ca7f87f198afe401bc552000fe2bd12 Mon Sep 17 00:00:00 2001
From: Ashok Kumar Reddy <ashokkourla2000@gmail.com>
Date: Thu, 23 Aug 2012 21:01:34 +0530
Subject: [PATCH] mx6qarm2:Use IMX_GPIO_NR macro

Signed-off-by: Ashok Kumar Reddy <ashokkourla2000@gmail.com>
---
  board/freescale/mx6qarm2/mx6qarm2.c |    4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/freescale/mx6qarm2/mx6qarm2.c 
b/board/freescale/mx6qarm2/mx6qarm2.c
index 340c4c4..3218993 100644
--- a/board/freescale/mx6qarm2/mx6qarm2.c
+++ b/board/freescale/mx6qarm2/mx6qarm2.c
@@ -126,8 +126,8 @@ int board_mmc_getcd(struct mmc *mmc)
  	int ret;

  	if (cfg->esdhc_base == USDHC3_BASE_ADDR) {
-		gpio_direction_input(171); /*GPIO6_11*/
-		ret = !gpio_get_value(171);
+		gpio_direction_input(IMX_GPIO_NR(6,11));
+		ret = !gpio_get_value(IMX_GPIO_NR(6,11));
  	} else /* Don't have the CD GPIO pin on board */
  		ret = 1;

-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] mx6qarm2:Use IMX_GPIO_NR macro
  2012-08-23 16:11 [U-Boot] [PATCH] mx6qarm2:Use IMX_GPIO_NR macro Ashok
@ 2012-08-23 16:35 ` Fabio Estevam
  2012-08-23 16:39 ` Stefano Babic
  1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2012-08-23 16:35 UTC (permalink / raw)
  To: u-boot

On Thu, Aug 23, 2012 at 1:11 PM, Ashok <ashokkourla2000@gmail.com> wrote:
> From 0a92ab264ca7f87f198afe401bc552000fe2bd12 Mon Sep 17 00:00:00 2001
> From: Ashok Kumar Reddy <ashokkourla2000@gmail.com>
> Date: Thu, 23 Aug 2012 21:01:34 +0530
> Subject: [PATCH] mx6qarm2:Use IMX_GPIO_NR macro
>
> Signed-off-by: Ashok Kumar Reddy <ashokkourla2000@gmail.com>

Acked-by: Fabio Estevam <fabio.estevam@freescale.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] mx6qarm2:Use IMX_GPIO_NR macro
  2012-08-23 16:11 [U-Boot] [PATCH] mx6qarm2:Use IMX_GPIO_NR macro Ashok
  2012-08-23 16:35 ` Fabio Estevam
@ 2012-08-23 16:39 ` Stefano Babic
  1 sibling, 0 replies; 3+ messages in thread
From: Stefano Babic @ 2012-08-23 16:39 UTC (permalink / raw)
  To: u-boot

On 23/08/2012 18:11, Ashok wrote:
> From 0a92ab264ca7f87f198afe401bc552000fe2bd12 Mon Sep 17 00:00:00 2001
> From: Ashok Kumar Reddy <ashokkourla2000@gmail.com>
> Date: Thu, 23 Aug 2012 21:01:34 +0530
> Subject: [PATCH] mx6qarm2:Use IMX_GPIO_NR macro
> 
> Signed-off-by: Ashok Kumar Reddy <ashokkourla2000@gmail.com>
> ---
>  board/freescale/mx6qarm2/mx6qarm2.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/board/freescale/mx6qarm2/mx6qarm2.c
> b/board/freescale/mx6qarm2/mx6qarm2.c
> index 340c4c4..3218993 100644
> --- a/board/freescale/mx6qarm2/mx6qarm2.c
> +++ b/board/freescale/mx6qarm2/mx6qarm2.c
> @@ -126,8 +126,8 @@ int board_mmc_getcd(struct mmc *mmc)
>      int ret;
> 
>      if (cfg->esdhc_base == USDHC3_BASE_ADDR) {
> -        gpio_direction_input(171); /*GPIO6_11*/
> -        ret = !gpio_get_value(171);
> +        gpio_direction_input(IMX_GPIO_NR(6,11));
> +        ret = !gpio_get_value(IMX_GPIO_NR(6,11));
>      } else /* Don't have the CD GPIO pin on board */
>          ret = 1;
> 

Acked-by: Stefano Babic <sbabic@denx.de>

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-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-23 16:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-23 16:11 [U-Boot] [PATCH] mx6qarm2:Use IMX_GPIO_NR macro Ashok
2012-08-23 16:35 ` Fabio Estevam
2012-08-23 16:39 ` Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox