summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcharles.park <charles.park@hardkernel.com>2017-08-04 12:48:24 +0300
committercharles.park <charles.park@hardkernel.com>2017-08-04 12:48:24 +0300
commit49883d6db2feff708021065ac417f988b87b792b (patch)
tree931d514b6ba1786873e3949577cd39805a9c5646
parent27d66ae9d4106df9ee9c75d5f57b057144d44d98 (diff)
downloadu-boot-49883d6db2feff708021065ac417f988b87b792b.tar.xz
ODROID-XU4 : eMMC reset gpio pull-up/down disable for samsung eMMC
Change-Id: I3e2553093ace30092e1503813aaae40dd5c4719b
-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) {