summaryrefslogtreecommitdiff
path: root/board/freescale/mx6qarm2/mx6qarm2.c
diff options
context:
space:
mode:
authorAshok Kumar Reddy <ashokkourla2000@gmail.com>2012-08-23 21:01:34 +0530
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-09-01 14:58:29 +0200
commitacbdea2ece9b2727c5d4424fb1d0d7b6684c50e6 (patch)
tree908d938fe858708c8bd33dce9fcd1637c4aec9cf /board/freescale/mx6qarm2/mx6qarm2.c
parent953884c382112d37b3fb98bb937d7e613bad85d5 (diff)
downloadu-boot-imx-acbdea2ece9b2727c5d4424fb1d0d7b6684c50e6.zip
u-boot-imx-acbdea2ece9b2727c5d4424fb1d0d7b6684c50e6.tar.gz
u-boot-imx-acbdea2ece9b2727c5d4424fb1d0d7b6684c50e6.tar.bz2
mx6qarm2:Use IMX_GPIO_NR macro
Signed-off-by: Ashok Kumar Reddy <ashokkourla2000@gmail.com> Acked-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'board/freescale/mx6qarm2/mx6qarm2.c')
-rw-r--r--board/freescale/mx6qarm2/mx6qarm2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/freescale/mx6qarm2/mx6qarm2.c b/board/freescale/mx6qarm2/mx6qarm2.c
index 340c4c4..e987ab0 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;