All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ashok <ashokkourla2000@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mx6qarm2:Use IMX_GPIO_NR macro
Date: Thu, 23 Aug 2012 21:41:19 +0530	[thread overview]
Message-ID: <50365627.6010807@gmail.com> (raw)

 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

             reply	other threads:[~2012-08-23 16:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-23 16:11 Ashok [this message]
2012-08-23 16:35 ` [U-Boot] [PATCH] mx6qarm2:Use IMX_GPIO_NR macro Fabio Estevam
2012-08-23 16:39 ` Stefano Babic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50365627.6010807@gmail.com \
    --to=ashokkourla2000@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.