]> git.sur5r.net Git - u-boot/commitdiff
mx53smd: Use gpio_direction_input prior to gpio_get_value
authorFabio Estevam <festevam@gmail.com>
Wed, 8 Feb 2012 02:34:44 +0000 (02:34 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 27 Feb 2012 20:19:24 +0000 (21:19 +0100)
Use gpio_direction_input prior to gpio_get_value.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
board/freescale/mx53smd/mx53smd.c

index e273192cac12ff5a1c4524a25cfff9558f78db06..c2379804aca2e9cf18d35ca955224ea7e9682dcd 100644 (file)
@@ -135,6 +135,7 @@ struct fsl_esdhc_cfg esdhc_cfg[1] = {
 int board_mmc_getcd(struct mmc *mmc)
 {
        mxc_request_iomux(MX53_PIN_EIM_DA13, IOMUX_CONFIG_ALT1);
+       gpio_direction_input(77);
        return !gpio_get_value(77); /* GPIO3_13 */
 }