mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-18 18:21:17 +01:00
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>
This commit is contained in:
parent
3664816ffd
commit
3f3c13a513
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue