summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <p.marczak@samsung.com>2014-10-24 17:44:56 +0200
committerSimon Glass <sjg@chromium.org>2014-10-27 19:20:51 -0600
commit3f3c13a513daa4c584e46bfc72cda2132bebf671 (patch)
tree2295c318df54695f39014bbd6420058a96711355
parent3664816ffda6e619e0ad44fc02930a2b8929e0bf (diff)
downloadu-boot-imx-3f3c13a513daa4c584e46bfc72cda2132bebf671.zip
u-boot-imx-3f3c13a513daa4c584e46bfc72cda2132bebf671.tar.gz
u-boot-imx-3f3c13a513daa4c584e46bfc72cda2132bebf671.tar.bz2
mmc: s5p: set SD detection pin as input
The SD Card slot detection pin should be configured as input. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r--drivers/mmc/s5p_sdhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c
index 0dea45d..a5d3487 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;