提交 93082044 编写于 作者: F Fabio Estevam 提交者: Albert ARIBAUD

mx53ard: Use gpio_direction_input prior to gpio_get_value

Use gpio_direction_input prior to gpio_get_value.
Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
上级 a091be76
......@@ -89,7 +89,9 @@ int board_mmc_getcd(struct mmc *mmc)
int ret;
mxc_request_iomux(MX53_PIN_GPIO_1, IOMUX_CONFIG_ALT1);
gpio_direction_input(1);
mxc_request_iomux(MX53_PIN_GPIO_4, IOMUX_CONFIG_ALT1);
gpio_direction_input(4);
if (cfg->esdhc_base == MMC_SDHC1_BASE_ADDR)
ret = !gpio_get_value(1); /* GPIO1_1 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册