From: Christian Gmeiner Date: Tue, 11 Nov 2014 11:57:05 +0000 (+0100) Subject: ot1200: fix card detect for usdhc4 X-Git-Tag: v2015.01-rc2~79^2~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cb0b6986b00a429c7a12596bbcbc52aca73773f4;p=u-boot 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: Christian Gmeiner --- diff --git a/board/bachmann/ot1200/ot1200.c b/board/bachmann/ot1200/ot1200.c index 2ed8cf75d6..007c1ef37d 100644 --- a/board/bachmann/ot1200/ot1200.c +++ b/board/bachmann/ot1200/ot1200.c @@ -159,8 +159,8 @@ int board_mmc_getcd(struct mmc *mmc) gpio_direction_input(IMX_GPIO_NR(4, 5)); ret = gpio_get_value(IMX_GPIO_NR(4, 5)); } else { - gpio_direction_input(IMX_GPIO_NR(1, 4)); - ret = !gpio_get_value(IMX_GPIO_NR(1, 4)); + gpio_direction_input(IMX_GPIO_NR(1, 5)); + ret = !gpio_get_value(IMX_GPIO_NR(1, 5)); } return ret;