summaryrefslogtreecommitdiff
path: root/drivers/mmc/mmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/mmc.c')
-rwxr-xr-xdrivers/mmc/mmc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 22d9e6b018..c7c56c8c6e 100755
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -20,6 +20,10 @@
#include <memalign.h>
#include <linux/list.h>
#include <div64.h>
+#include <asm/gpio.h>
+#include <asm/io.h>
+#include <samsung/misc.h>
+
#include "mmc_private.h"
static const unsigned int sd_au_size[] = {
@@ -1845,6 +1849,12 @@ int mmc_initialize(bd_t *bis)
struct mmc *mmc;
int err, dev;
+ /* eMMC reset port pull-up/down off for samsung eMMC */
+ if (!gpio_request(EXYNOS5420_GPIO_D10, "reset")) {
+ gpio_set_pull(EXYNOS5420_GPIO_D10, S5P_GPIO_PULL_NONE);
+ gpio_free(EXYNOS5420_GPIO_D10);
+ }
+
for (dev = 0; dev < CONFIG_SYS_MMC_MAX_DEVICE; dev++) {
mmc = find_mmc_device(dev);
if (mmc) {