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>
This commit is contained in:

committed by
Albert ARIBAUD

parent
953884c382
commit
acbdea2ece
@@ -126,8 +126,8 @@ int board_mmc_getcd(struct mmc *mmc)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (cfg->esdhc_base == USDHC3_BASE_ADDR) {
|
if (cfg->esdhc_base == USDHC3_BASE_ADDR) {
|
||||||
gpio_direction_input(171); /*GPIO6_11*/
|
gpio_direction_input(IMX_GPIO_NR(6, 11));
|
||||||
ret = !gpio_get_value(171);
|
ret = !gpio_get_value(IMX_GPIO_NR(6, 11));
|
||||||
} else /* Don't have the CD GPIO pin on board */
|
} else /* Don't have the CD GPIO pin on board */
|
||||||
ret = 1;
|
ret = 1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user