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

ot1200: fix card detect for usdhc4


Today I got the final board and found out that a different
connector is used as the one on my development board. The
new connector has swaped pins for cd and wp.

This change is tested on a production ready board.

Signed-off-by: default avatarChristian Gmeiner <christian.gmeiner@gmail.com>
parent 4ccaf5dd
No related branches found
No related tags found
No related merge requests found
...@@ -159,8 +159,8 @@ int board_mmc_getcd(struct mmc *mmc) ...@@ -159,8 +159,8 @@ int board_mmc_getcd(struct mmc *mmc)
gpio_direction_input(IMX_GPIO_NR(4, 5)); gpio_direction_input(IMX_GPIO_NR(4, 5));
ret = gpio_get_value(IMX_GPIO_NR(4, 5)); ret = gpio_get_value(IMX_GPIO_NR(4, 5));
} else { } else {
gpio_direction_input(IMX_GPIO_NR(1, 4)); gpio_direction_input(IMX_GPIO_NR(1, 5));
ret = !gpio_get_value(IMX_GPIO_NR(1, 4)); ret = !gpio_get_value(IMX_GPIO_NR(1, 5));
} }
return ret; return ret;
......
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