summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2014-11-11 12:57:05 +0100
committerStefano Babic <sbabic@denx.de>2014-11-13 16:23:38 +0100
commitcb0b6986b00a429c7a12596bbcbc52aca73773f4 (patch)
treea42876215d521d84005b643d193cb930e987a1fc /board
parent4ccaf5ddeb04a7c0ef4f31ce5705a2635606fd72 (diff)
downloadu-boot-imx-cb0b6986b00a429c7a12596bbcbc52aca73773f4.zip
u-boot-imx-cb0b6986b00a429c7a12596bbcbc52aca73773f4.tar.gz
u-boot-imx-cb0b6986b00a429c7a12596bbcbc52aca73773f4.tar.bz2
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 <christian.gmeiner@gmail.com>
Diffstat (limited to 'board')
-rw-r--r--board/bachmann/ot1200/ot1200.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/bachmann/ot1200/ot1200.c b/board/bachmann/ot1200/ot1200.c
index 2ed8cf7..007c1ef 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;