projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3664816
)
mmc: s5p: set SD detection pin as input
author
Przemyslaw Marczak
<p.marczak@samsung.com>
Fri, 24 Oct 2014 15:44:56 +0000
(17:44 +0200)
committer
Simon Glass
<sjg@chromium.org>
Tue, 28 Oct 2014 01:20:51 +0000
(19:20 -0600)
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>
drivers/mmc/s5p_sdhci.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/s5p_sdhci.c
b/drivers/mmc/s5p_sdhci.c
index 0dea45d079f33e9c4f8b3b55288d7f508e4abc2d..a5d34876bbb6d7633f4a8f3dac3c9f21a6b82753 100644
(file)
--- 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;