Skip to content
Snippets Groups Projects
Commit 56740fa9 authored by Christian Gmeienr's avatar Christian Gmeienr Committed by Stefano Babic
Browse files

ot1200: rework card detect for eMMC

parent 5a9ca420
No related branches found
No related tags found
No related merge requests found
...@@ -155,9 +155,10 @@ int board_mmc_getcd(struct mmc *mmc) ...@@ -155,9 +155,10 @@ int board_mmc_getcd(struct mmc *mmc)
struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv;
int ret; int ret;
if (cfg->esdhc_base == USDHC3_BASE_ADDR) if (cfg->esdhc_base == USDHC3_BASE_ADDR) {
ret = 1; gpio_direction_input(IMX_GPIO_NR(4, 5));
else { ret = gpio_get_value(IMX_GPIO_NR(4, 5));
} else {
gpio_direction_input(IMX_GPIO_NR(1, 4)); gpio_direction_input(IMX_GPIO_NR(1, 4));
ret = !gpio_get_value(IMX_GPIO_NR(1, 4)); ret = !gpio_get_value(IMX_GPIO_NR(1, 4));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment