]> git.sur5r.net Git - u-boot/blobdiff - board/bachmann/ot1200/ot1200.c
ot1200: fix card detect for usdhc4
[u-boot] / board / bachmann / ot1200 / ot1200.c
index 2ed8cf75d64fda74508c9f1a819bf07819440d3c..007c1ef37d1f1839bd0be42a4407d230c2e22171 100644 (file)
@@ -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;