提交 acbdea2e 编写于 作者: A Ashok Kumar Reddy 提交者: Albert ARIBAUD

mx6qarm2:Use IMX_GPIO_NR macro

Signed-off-by: NAshok Kumar Reddy <ashokkourla2000@gmail.com>
Acked-by: NFabio Estevam <fabio.estevam@freescale.com>
Acked-by: NStefano Babic <sbabic@denx.de>
上级 953884c3
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册