]> Git Repo - u-boot.git/commitdiff
mx53evk: Use gpio_direction_input prior to gpio_get_value
authorFabio Estevam <[email protected]>
Wed, 8 Feb 2012 02:34:43 +0000 (02:34 +0000)
committerAlbert ARIBAUD <[email protected]>
Mon, 27 Feb 2012 20:19:24 +0000 (21:19 +0100)
Use gpio_direction_input prior to gpio_get_value.

Cc: Jason Liu <[email protected]>
Signed-off-by: Fabio Estevam <[email protected]>
Acked-by: Jason Liu <[email protected]>
board/freescale/mx53evk/mx53evk.c

index e976ae1c083d40dd132015a0587a98929dd752ac..8a6e31d9b100036b18107deaf76fdba14ce73537 100644 (file)
@@ -214,7 +214,9 @@ int board_mmc_getcd(struct mmc *mmc)
        int ret;
 
        mxc_request_iomux(MX53_PIN_EIM_DA11, IOMUX_CONFIG_ALT1);
+       gpio_direction_input(75);
        mxc_request_iomux(MX53_PIN_EIM_DA13, IOMUX_CONFIG_ALT1);
+       gpio_direction_input(77);
 
        if (cfg->esdhc_base == MMC_SDHC1_BASE_ADDR)
                ret = !gpio_get_value(77); /* GPIO3_13 */
This page took 0.03453 seconds and 4 git commands to generate.