From: Przemyslaw Marczak
Date: Fri, 24 Oct 2014 15:44:56 +0000 (+0200)
Subject: mmc: s5p: set SD detection pin as input
X-Git-Tag: v2015.01-rc1~83^2~10
X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3f3c13a513daa4c584e46bfc72cda2132bebf671;p=u-boot
mmc: s5p: set SD detection pin as input
The SD Card slot detection pin should be configured as input.
Signed-off-by: Przemyslaw Marczak
Acked-by: Simon Glass
---
diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c
index 0dea45d079..a5d34876bb 100644
--- a/drivers/mmc/s5p_sdhci.c
+++ b/drivers/mmc/s5p_sdhci.c
@@ -123,7 +123,7 @@ static int do_sdhci_init(struct sdhci_host *host)
if (fdt_gpio_isvalid(&host->cd_gpio)) {
sprintf(str, "sdhci%d_cd", host->index & 0xf);
gpio_request(host->cd_gpio.gpio, str);
- gpio_direction_output(host->cd_gpio.gpio, 1);
+ gpio_direction_input(host->cd_gpio.gpio);
if (gpio_get_value(host->cd_gpio.gpio))
return -ENODEV;